🐛 fix user guilds

This commit is contained in:
Flam3rboy
2021-04-06 04:30:04 +02:00
parent 73aeca20de
commit af6f9b57ad
2 changed files with 6 additions and 1 deletions
+3 -1
View File
@@ -16,7 +16,9 @@ export async function getPublicUser(user_id: bigint, additional_fields?: any) {
...PublicUserProjection,
...additional_fields,
}
).exec();
)
.lean()
.exec();
if (!user) throw new HTTPError("User not found", 404);
return user;
}