From 11a72ae6d31f9036aa2d4ceb693d30a190357430 Mon Sep 17 00:00:00 2001 From: confused-Techie Date: Wed, 7 Aug 2024 20:06:02 -0700 Subject: [PATCH] Ensure to look for `db.packageNameAvailability` falsy result --- src/controllers/postPackagesPackageNameVersions.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/controllers/postPackagesPackageNameVersions.js b/src/controllers/postPackagesPackageNameVersions.js index 500589d1..c7022352 100644 --- a/src/controllers/postPackagesPackageNameVersions.js +++ b/src/controllers/postPackagesPackageNameVersions.js @@ -248,7 +248,7 @@ module.exports = { callStack.addCall("db.packageNameAvailability", isAvailable); - if (isAvailable.ok) { + if (!isAvailable.ok) { const sso = new context.sso(); return sso