mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2024-11-10 17:04:49 +08:00
reverted change made for testing
This commit is contained in:
parent
2b334ba381
commit
e90a250f92
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue