fix: Suppress Slack updated notifications when publishing

closes #4821
This commit is contained in:
Tom Moor
2023-02-04 14:00:30 -05:00
parent 59b02154b9
commit 8b28d6f6e0

View File

@@ -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,