From 0a3e6c8f3fcc953e0ceb935fd1bc0f76a29b9c7e Mon Sep 17 00:00:00 2001 From: Artem Savchenko Date: Thu, 13 Nov 2025 14:33:48 +0700 Subject: [PATCH] Fix mail notifications Signed-off-by: Artem Savchenko --- server-plugins/gmail-resources/src/index.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server-plugins/gmail-resources/src/index.ts b/server-plugins/gmail-resources/src/index.ts index c9a53fa1733..080d77ebe51 100644 --- a/server-plugins/gmail-resources/src/index.ts +++ b/server-plugins/gmail-resources/src/index.ts @@ -222,7 +222,8 @@ async function processEmailNotifications (control: TriggerControl, notifications const emails = await control.findAll(control.ctx, contact.class.SocialIdentity, { attachedTo: employee._id, type: { $in: [SocialIdType.EMAIL, SocialIdType.GOOGLE] }, - verifiedOn: { $gt: 0 } + verifiedOn: { $gt: 0 }, + isDeleted: { $ne: true } }) if (emails.length === 0) continue