mirror of
https://github.com/spacebarchat/server.git
synced 2026-03-30 13:55:39 +00:00
fix: don't return default role for user profiles
This commit is contained in:
@@ -77,6 +77,8 @@ router.get("/", route({ responses: { 200: { body: "UserProfileResponse" } } }),
|
||||
})
|
||||
: undefined;
|
||||
|
||||
if (guild_member) guild_member.roles = guild_member?.roles.filter((role) => role.id != guild_id);
|
||||
|
||||
// TODO: make proper DTO's in util?
|
||||
|
||||
const userProfile = {
|
||||
|
||||
Reference in New Issue
Block a user