Skip to content

Commit

Permalink
Ensure to look for db.packageNameAvailability falsy result
Browse files Browse the repository at this point in the history
  • Loading branch information
confused-Techie committed Aug 8, 2024
1 parent 02bea4d commit 11a72ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/controllers/postPackagesPackageNameVersions.js
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ module.exports = {

callStack.addCall("db.packageNameAvailability", isAvailable);

if (isAvailable.ok) {
if (!isAvailable.ok) {
const sso = new context.sso();

return sso
Expand Down

0 comments on commit 11a72ae

Please sign in to comment.