From 481ec8a4f3b3893fe88ed9e33f32ba543f3588fe Mon Sep 17 00:00:00 2001 From: build-pipeline <build-token> Date: Mon, 10 Jan 2022 08:39:16 +0000 Subject: [PATCH] publish: Merge branch 'fix/newsletter-link' into 'dev' generated from commit f39fa16c0ccc1b00a18a1101c3908bc23c057c2b --- services/monthlyReportNotification/ecolyo.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/services/monthlyReportNotification/ecolyo.js b/services/monthlyReportNotification/ecolyo.js index 8012b4ed7..970e75476 100644 --- a/services/monthlyReportNotification/ecolyo.js +++ b/services/monthlyReportNotification/ecolyo.js @@ -144111,14 +144111,14 @@ const monthlyReportNotification = async ({ clientUrl: url, unsubscribeUrl: unsubscribeUrl, consumptionTextExist: consumptionText.length > 0, - consumptionText: consumptionText.replace(/{cozyUrl}/g, appLink + '#/'), - infoText: monthlyReport.info.replace(/{cozyUrl}/g, appLink + '#/'), + consumptionText: consumptionText.replace('https://cozyUrl/', appLink + '#/'), + infoText: monthlyReport.info.replace('https://cozyUrl/', appLink + '#/'), infoImage: monthlyReport.image !== '' ? baseUrl + monthlyReport.image : baseUrl + '/assets/astuce.png', isServiceNews: isServiceNews, isPoll: isPoll, - newsTitle: monthlyReport.newsTitle.replace(/{cozyUrl}/g, appLink + '#/'), - newsContent: monthlyReport.newsContent.replace(/{cozyUrl}/g, appLink + '#/'), - pollText: monthlyReport.question.replace(/{cozyUrl}/g, appLink + '#/'), + newsTitle: monthlyReport.newsTitle.replace('https://cozyUrl/', appLink + '#/'), + newsContent: monthlyReport.newsContent.replace('https://cozyUrl/', appLink + '#/'), + pollText: monthlyReport.question.replace('https://cozyUrl/', appLink + '#/'), pollUrl: monthlyReport.link, previousMonth: (0, _utils.getPreviousMonthName)(date.minus({ month: 1 -- GitLab