Skip to content

Commit 40b5c4a

Browse files
committed
[#1676] Add explicit callback(true) for projectForUserExists
1 parent 1893f01 commit 40b5c4a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

server/controllers/project.controller.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,9 @@ export function projectForUserExists(username, projectId, callback) {
150150
Project.findOne({ user: user._id, $or: [{ _id: projectId }, { slug: projectId }] }, (innerErr, project) => {
151151
if (!project) {
152152
callback(false);
153+
return;
153154
}
155+
callback(true);
154156
});
155157
});
156158
}

0 commit comments

Comments
 (0)