Skip to content

Commit

Permalink
fix(mail): add title to template
Browse files Browse the repository at this point in the history
  • Loading branch information
Mihoub2 committed Oct 11, 2024
1 parent 869a73f commit ac60cdf
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions server/routes/contacts/post/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,11 +87,13 @@ postContactsRoutes.post(
templateId: 268,
params: {
date: new Date().toLocaleDateString("fr-FR"),
title: "Nouvelle contribution créée via formulaire de contact",
id: finalContribution.id,
link: contributionLink,
message: `${finalContribution.message}`,
},
};
console.log(finalContribution);

const response = await fetch("https://api.brevo.com/v3/smtp/email", {
method: "POST",
Expand Down
1 change: 1 addition & 0 deletions server/routes/contributionObjectRoutes/post/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ postContributionObjectRoutes.post(
templateId: 268,
params: {
date: new Date().toLocaleDateString("fr-FR"),
title: "Nouvelle contribution créée concernant un objet",
id: finalContribution.id,
link: contributionLink,
message: `${finalContribution.message}`,
Expand Down
2 changes: 2 additions & 0 deletions server/routes/productions/post/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,8 @@ postProductionRoutes.post(
templateId: 268,
params: {
date: new Date().toLocaleDateString("fr-FR"),
title:
"Nouvelle contribution créée pour une affiliation de publication(s)",
link: contributionLink,
message: `La contribution avec l'ID ${finalContribution.id} a été ajoutée.
`,
Expand Down
1 change: 1 addition & 0 deletions server/routes/remove-user/post/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ postRemoveUserRoutes.post(
templateId: 268,
params: {
date: new Date().toLocaleDateString("fr-FR"),
title: "Nouvelle demande de suppression de profil",
id: finalContribution.id,
link: contributionLink,
message: `${finalContribution.message}`,
Expand Down
1 change: 1 addition & 0 deletions server/routes/update-user-data/post/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ postUpdateUserDataRoutes.post(
templateId: 267,
params: {
date: new Date().toLocaleDateString("fr-FR"),
title: "Nouvelle demande de modification de profil",
id: finalContribution.id,
link: contributionLink,
message: `${finalContribution.message}`,
Expand Down

0 comments on commit ac60cdf

Please sign in to comment.