Skip to content

Commit 9b7be34

Browse files
Fix mail notifications (#10208)
Signed-off-by: Artem Savchenko <[email protected]>
1 parent 8069c7d commit 9b7be34

File tree

1 file changed

+2
-1
lines changed
  • server-plugins/gmail-resources/src

1 file changed

+2
-1
lines changed

server-plugins/gmail-resources/src/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,8 @@ async function processEmailNotifications (control: TriggerControl, notifications
222222
const emails = await control.findAll(control.ctx, contact.class.SocialIdentity, {
223223
attachedTo: employee._id,
224224
type: { $in: [SocialIdType.EMAIL, SocialIdType.GOOGLE] },
225-
verifiedOn: { $gt: 0 }
225+
verifiedOn: { $gt: 0 },
226+
isDeleted: { $ne: true }
226227
})
227228
if (emails.length === 0) continue
228229

0 commit comments

Comments
 (0)