From baf7707ba0f34cc808b485dfdf81c4435e1cfc1c Mon Sep 17 00:00:00 2001 From: Vitor Rocha Date: Mon, 24 Aug 2026 11:15:31 -0300 Subject: [PATCH] fix(emails): correct invoice_issued mail template key to `invoiceIssued` @ecomplus/transactional-mails exports the invoice template as `invoiceIssued` (camelCase, like all other status templates), but get-mail-templ.ts returns `templ: 'invoice_issued'`. The lookup `transactionalMails[templateName]` then returns undefined and every invoice_issued email fails with "TypeError: render is not a function". Co-Authored-By: Claude Fable 5 --- packages/apps/emails/src/util/get-mail-templ.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/apps/emails/src/util/get-mail-templ.ts b/packages/apps/emails/src/util/get-mail-templ.ts index 9fdd5c9fe..c8261d9e9 100644 --- a/packages/apps/emails/src/util/get-mail-templ.ts +++ b/packages/apps/emails/src/util/get-mail-templ.ts @@ -119,7 +119,7 @@ const getMailTempl = (typeOrStatus: MailMapKey) => { }; case 'invoice_issued': return { - templ: 'invoice_issued', + templ: 'invoiceIssued', subject: { pt_br: 'Nota Fiscal do seu pedido', en_us: 'Invoice of your order',