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