diff --git a/app/server/scripts/node/acl-migration.js b/app/server/scripts/node/acl-migration.js index 7519a42b08..cadc589be2 100644 --- a/app/server/scripts/node/acl-migration.js +++ b/app/server/scripts/node/acl-migration.js @@ -338,7 +338,7 @@ async function purgeSuperUser(db, isSilent) { async function runChecks(db) { for (const collection of await db.collections()) { - if (0 !== await collection.countDocuments({ "policies.users": SUPER_EMAIL })) { + if (await collection.countDocuments({ "policies.users": SUPER_EMAIL }) !== 0 ) { console.error(`Super user lives on in the '${collection.collectionName}' collection.`); } }