mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-03-11 06:05:16 +08:00
user tags not required when loading user
This commit is contained in:
parent
0ef370ca80
commit
b4288d9bd2
1 changed files with 2 additions and 2 deletions
|
@ -95,8 +95,8 @@ class UsersDAO {
|
|||
|
||||
static async getTags(uid) {
|
||||
const user = await mongoDB().collection("users").findOne({ uid });
|
||||
if (!user) throw new MonkeyError(404, "User not found", "get tags");
|
||||
return user.tags;
|
||||
// if (!user) throw new MonkeyError(404, "User not found", "get tags");
|
||||
return user?.tags ?? [];
|
||||
}
|
||||
|
||||
static async editTag(uid, _id, name) {
|
||||
|
|
Loading…
Reference in a new issue