From 1abb1afe7a82984ff1d7cf0c146a57cbbae48fc2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Raphael=20St=C3=A4bler?= Date: Fri, 21 Jun 2024 14:34:23 +0200 Subject: [PATCH] Fix db query --- src/commands/mail/oldaccounts.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commands/mail/oldaccounts.ts b/src/commands/mail/oldaccounts.ts index 25a02f8..76b8bcc 100644 --- a/src/commands/mail/oldaccounts.ts +++ b/src/commands/mail/oldaccounts.ts @@ -67,7 +67,7 @@ export default class OldAccounts extends Command { const credentialSet = new Set(credentialList.map(({user}) => user)); usersQuery['_id'] = { - $in: credentialSet, + $in: Array.from(credentialSet), isActive: true, emailVerified: true, oldAccountDeletionNoticeSent: {$ne: true},