Updated email notifications templates (#287)

This commit is contained in:
Montassar Ghanmy
2023-12-01 08:57:14 +01:00
committed by GitHub
parent d4609e20a6
commit 2fe9a5786d
18 changed files with 179 additions and 32 deletions
@@ -16,9 +16,13 @@ export class DocumentsEngine implements Initializable {
const company = await globalResolver.services.companies.getCompany({
id: e.context.company.id,
});
const emailTemplate =
event === DocumentEvents.DOCUMENT_SAHRED
? "notification-document-shared"
: "notification-document-version-updated";
try {
const { html, text, subject } = await globalResolver.platformServices.emailPusher.build(
"notification-document",
emailTemplate,
receiver.language || "en",
{
sender,