Skip to content

Commit 67e8ed2

Browse files
authored
Use Number field instead of id field (#312)
fixes #311
1 parent 4cd2aae commit 67e8ed2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

apps/api/src/lib/nodemailer/ticket/status.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,10 @@ export async function sendTicketStatus(ticket: any) {
5151
.sendMail({
5252
from: replyto, // sender address
5353
to: ticket.email,
54-
subject: `Ticket ${ticket.id} status is now ${
54+
subject: `Ticket ${ticket.Number} status is now ${
5555
ticket.isComplete ? "COMPLETED" : "OUTSTANDING"
5656
}`, // Subject line
57-
text: `Hello there, Ticket ${ticket.id}, now has a status of ${
57+
text: `Hello there, Ticket ${ticket.Number}, now has a status of ${
5858
ticket.isComplete ? "COMPLETED" : "OUTSTANDING"
5959
}`, // plain text body
6060
html: htmlToSend,

0 commit comments

Comments
 (0)