diff --git a/back/strapi/api/activation-tile/models/activation-tile.settings.json b/back/strapi/api/activation-tile/models/activation-tile.settings.json index 0dca3fbb2..2f43c1725 100644 --- a/back/strapi/api/activation-tile/models/activation-tile.settings.json +++ b/back/strapi/api/activation-tile/models/activation-tile.settings.json @@ -23,6 +23,9 @@ }, "whatsapp": { "type": "boolean" + }, + "whatsapp_redirect_message": { + "type": "string" } } } diff --git a/back/strapi/api/reponses-epds/config/schema.graphql.js b/back/strapi/api/reponses-epds/config/schema.graphql.js index 24eaa6ee3..4f577940e 100644 --- a/back/strapi/api/reponses-epds/config/schema.graphql.js +++ b/back/strapi/api/reponses-epds/config/schema.graphql.js @@ -62,6 +62,7 @@ module.exports = { prenom: String score_question_dix: String telephone: String + langue: String ): Boolean epdsContactConfirmed ( diff --git a/back/strapi/api/reponses-epds/services/contact.js b/back/strapi/api/reponses-epds/services/contact.js index 1305250b1..c4186246f 100644 --- a/back/strapi/api/reponses-epds/services/contact.js +++ b/back/strapi/api/reponses-epds/services/contact.js @@ -11,35 +11,22 @@ const emailTemplate = (info) => ({

@@ -80,6 +67,12 @@ const emailTemplate = (info) => ({ - score à la question 10 "Il m’est arrivé de penser à me faire du mal" : <%- score_question_dix %> / 3` : `` } + ${ + info.langue + ? ` + - langue : <%- langue %>` + : `` + } L'équipe 1000 premiers jours.`, }); @@ -93,6 +86,7 @@ const contact = async ({ nombre_enfants = "ND", score_question_dix = "ND", telephone = "ND", + langue = "ND", }) => { if (!process.env["MAIL_SEND_TO"]) throw new Error("Le service mail n'est pas configuré"); @@ -106,6 +100,7 @@ const contact = async ({ prenom, score_question_dix, telephone, + langue, }; try {