diff --git a/services/monthlyReportNotification/ecolyo.js b/services/monthlyReportNotification/ecolyo.js index 8012b4ed76843701be7aadb4a4f5ce610250a5dc..970e754763d2af492d4f9596e4852ad9adbbcc84 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