mirror of
https://github.com/spacebarchat/server.git
synced 2024-11-22 02:12:40 +01:00
Merge pull request #1231 from CyberL1/fix/user-profile-colors
This commit is contained in:
commit
a5e875c3d2
2
package-lock.json
generated
2
package-lock.json
generated
@ -11786,4 +11786,4 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -82,7 +82,7 @@ router.get(
|
||||
? await Member.findOneOrFail({
|
||||
where: { id: req.params.id, guild_id: guild_id },
|
||||
relations: ["roles"],
|
||||
})
|
||||
})
|
||||
: undefined;
|
||||
|
||||
// TODO: make proper DTO's in util?
|
||||
@ -92,7 +92,7 @@ router.get(
|
||||
accent_color: user.accent_color,
|
||||
banner: user.banner,
|
||||
pronouns: user.pronouns,
|
||||
theme_colors: user.theme_colors,
|
||||
theme_colors: user.theme_colors?.map((t) => Number(t)), // these are strings for some reason, they should be numbers
|
||||
};
|
||||
|
||||
const guildMemberProfile = {
|
||||
|
Loading…
Reference in New Issue
Block a user