From e90a250f92813600fc574ec8270619390b606a83 Mon Sep 17 00:00:00 2001 From: Jack Date: Mon, 13 Sep 2021 15:46:54 +0100 Subject: [PATCH] reverted change made for testing --- backend/dao/user.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }