diff --git a/backend/dao/user.js b/backend/dao/user.js index 522d5b6da..af69a84a2 100644 --- a/backend/dao/user.js +++ b/backend/dao/user.js @@ -67,7 +67,7 @@ class UsersDAO { static async getUser(uid) { const user = await mongoDB().collection("users").findOne({ uid }); - if (user) throw new MonkeyError(404, "User not found", "get user"); + if (!user) throw new MonkeyError(404, "User not found", "get user"); return user; }