From 8b28d6f6e0d1878c1c14b7646a9b660f0e8f70bd Mon Sep 17 00:00:00 2001 From: Tom Moor Date: Sat, 4 Feb 2023 14:00:30 -0500 Subject: [PATCH] fix: Suppress Slack updated notifications when publishing closes #4821 --- server/queues/processors/SlackProcessor.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/server/queues/processors/SlackProcessor.ts b/server/queues/processors/SlackProcessor.ts index c41ae0b42..3f797ecf6 100644 --- a/server/queues/processors/SlackProcessor.ts +++ b/server/queues/processors/SlackProcessor.ts @@ -94,6 +94,13 @@ export default class SlackProcessor extends BaseProcessor { return; } + if ( + event.name === "revisions.create" && + document.updatedAt === document.publishedAt + ) { + return; + } + const integration = (await Integration.findOne({ where: { teamId: document.teamId,