From be6520f0123c1c90a65df7623de4b827d1259538 Mon Sep 17 00:00:00 2001 From: Maxime Golfier <25312957+maxgfr@users.noreply.github.com> Date: Fri, 12 Jul 2024 15:23:52 +0200 Subject: [PATCH] fix(message): affichage des messages de l'export en fonction de l'env (#1449) --- targets/export-elasticsearch/src/services/export.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/targets/export-elasticsearch/src/services/export.ts b/targets/export-elasticsearch/src/services/export.ts index a08223664..a22a174fe 100644 --- a/targets/export-elasticsearch/src/services/export.ts +++ b/targets/export-elasticsearch/src/services/export.ts @@ -68,12 +68,12 @@ export class ExportService { const exportEsDone = await this.exportRepository.getOne(id); if (environment === Environment.preproduction) { await sendMattermostMessage( - `**Production:** mise à jour terminée (${exportEsDone.documentsCount?.total} documents) 🎉`, + `**Préproduction:** mise à jour terminée (${exportEsDone.documentsCount?.total} documents) 😁`, process.env.MATTERMOST_CHANNEL_EXPORT ); } else { await sendMattermostMessage( - `**Préproduction:** mise à jour terminée (${exportEsDone.documentsCount?.total} documents) 😁`, + `**Production:** mise à jour terminée (${exportEsDone.documentsCount?.total} documents) 🎉`, process.env.MATTERMOST_CHANNEL_EXPORT ); }