From 960f7d6ce1acc35bfd9cffe40c7e9e3a9ad75c0a Mon Sep 17 00:00:00 2001 From: build-pipeline <build-token> Date: Tue, 11 Jan 2022 08:09:44 +0000 Subject: [PATCH] publish: Merge branch 'revert-f39fa16c' into 'dev' generated from commit 72b562e0c6b4a4a9a0b0f436972093bf099cdeeb --- 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 970e75476..8012b4ed7 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('https://cozyUrl/', appLink + '#/'), - infoText: monthlyReport.info.replace('https://cozyUrl/', appLink + '#/'), + consumptionText: consumptionText.replace(/{cozyUrl}/g, appLink + '#/'), + infoText: monthlyReport.info.replace(/{cozyUrl}/g, appLink + '#/'), infoImage: monthlyReport.image !== '' ? baseUrl + monthlyReport.image : baseUrl + '/assets/astuce.png', isServiceNews: isServiceNews, isPoll: isPoll, - newsTitle: monthlyReport.newsTitle.replace('https://cozyUrl/', appLink + '#/'), - newsContent: monthlyReport.newsContent.replace('https://cozyUrl/', appLink + '#/'), - pollText: monthlyReport.question.replace('https://cozyUrl/', appLink + '#/'), + newsTitle: monthlyReport.newsTitle.replace(/{cozyUrl}/g, appLink + '#/'), + newsContent: monthlyReport.newsContent.replace(/{cozyUrl}/g, appLink + '#/'), + pollText: monthlyReport.question.replace(/{cozyUrl}/g, appLink + '#/'), pollUrl: monthlyReport.link, previousMonth: (0, _utils.getPreviousMonthName)(date.minus({ month: 1 -- GitLab