Skip to content

Commit

Permalink
Fix db query
Browse files Browse the repository at this point in the history
  • Loading branch information
blazer82 committed Jun 21, 2024
1 parent 1abb1af commit 12dba39
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/commands/mail/oldaccounts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,11 @@ export default class OldAccounts extends Command {

usersQuery['_id'] = {
$in: Array.from(credentialSet),
isActive: true,
emailVerified: true,
oldAccountDeletionNoticeSent: {$ne: true},
role: 'account-owner',
};
usersQuery['isActive'] = true;
usersQuery['emailVerified'] = true;
usersQuery['oldAccountDeletionNoticeSent'] = {$ne: true};
usersQuery['role'] = 'account-owner';
}

const userList = await db.collection('users').find(usersQuery).project({_id: 1}).toArray();
Expand Down

0 comments on commit 12dba39

Please sign in to comment.