Unverified Commit ff939d41 authored by Audrey Lebret's avatar Audrey Lebret Committed by GitHub
Browse files

feat(partage epds): Ajout d'un email pour un second pro (#707)

* feat(partage epds): Ajout d'un email pour un second pro

* fix(partage epds): PR - compatibilité avec la version précedente des emails

* fix(partage epds): PR - nommage
parent 0b56372e
......@@ -30,8 +30,9 @@ module.exports = {
): Boolean
epdsPartage (
email: String!
email: String
email_pro: String!
email_pro_secondaire: String
telephone: String
prenom: String
nom: String
......
......@@ -123,9 +123,10 @@ const buildHtmlDetailScore = (info, index) =>
`;
const partage = async ({
email,
email = "ND",
email_pro,
telephone,
email_pro_secondaire = "ND",
telephone = "ND",
prenom = "ND",
nom = "ND",
score = "ND",
......@@ -138,6 +139,7 @@ const partage = async ({
const info = {
email,
email_pro,
email_pro_secondaire,
telephone,
prenom,
nom,
......@@ -152,7 +154,7 @@ const partage = async ({
{
from: process.env["MAIL_SEND_FROM"],
to: email_pro,
cc: email
cc: [email, email_pro_secondaire]
},
emailPartageTemplate(info),
info
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment