Skip to content

Commit

Permalink
fix(message): affichage des messages de l'export en fonction de l'env (
Browse files Browse the repository at this point in the history
  • Loading branch information
maxgfr authored Jul 12, 2024
1 parent e3e2e6e commit be6520f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions targets/export-elasticsearch/src/services/export.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
);
}
Expand Down

0 comments on commit be6520f

Please sign in to comment.