reverted change made for testing

This commit is contained in:
Jack 2021-09-13 15:46:54 +01:00
parent 2b334ba381
commit e90a250f92

View file

@ -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;
}