Skip to content

Commit

Permalink
Fix API users/show
Browse files Browse the repository at this point in the history
  • Loading branch information
mei23 committed May 6, 2024
1 parent 94dc15c commit 08053ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/server/api/endpoints/users/show.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ export default define(meta, async (ps, me) => {
? { id: ps.userId }
: { usernameLower: ps.username!.toLowerCase(), host: null };

user = await Users.findOne({ id: q });
user = await Users.findOne(q);
}

if (user == null || (!isAdminOrModerator && user.isSuspended)) {
Expand Down

0 comments on commit 08053ec

Please # to comment.