From cc2c0829fc40eb99ba4c532233ecd1aa117a0886 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9my=20Auricoste?= Date: Thu, 28 Nov 2024 09:23:36 +0100 Subject: [PATCH] feat(lbac-2263): modification objet du mail de candidature (#1668) --- server/src/services/application.service.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/server/src/services/application.service.ts b/server/src/services/application.service.ts index 7e300053c..3d220b9b0 100644 --- a/server/src/services/application.service.ts +++ b/server/src/services/application.service.ts @@ -983,7 +983,9 @@ export const processApplicationEmails = { const emailCompany = await mailer.sendEmail({ to: application.company_email, - subject: type === LBA_ITEM_TYPE.RECRUTEURS_LBA ? `Candidature spontanée en alternance ${application.company_name}` : `Candidature en alternance - ${application.job_title}`, + subject: + (type === LBA_ITEM_TYPE.RECRUTEURS_LBA ? `Candidature spontanée en alternance ${application.company_name}` : `Candidature en alternance - ${application.job_title}`) + + ` - ${application.applicant_first_name} ${application.applicant_last_name}`, template: getEmailTemplate(type === LBA_ITEM_TYPE.RECRUTEURS_LBA ? "mail-candidature-spontanee" : "mail-candidature"), data: { ...sanitizeApplicationForEmail(application),