diff --git a/backend/dao/user.js b/backend/dao/user.js index d946c4664..65bc3b4a0 100644 --- a/backend/dao/user.js +++ b/backend/dao/user.js @@ -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) {