Merge pull request #1231 from CyberL1/fix/user-profile-colors

This commit is contained in:
Madeline 2024-11-16 12:22:19 +11:00 committed by GitHub
commit a5e875c3d2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 3 deletions

View File

@ -82,7 +82,7 @@ router.get(
? await Member.findOneOrFail({ ? await Member.findOneOrFail({
where: { id: req.params.id, guild_id: guild_id }, where: { id: req.params.id, guild_id: guild_id },
relations: ["roles"], relations: ["roles"],
}) })
: undefined; : undefined;
// TODO: make proper DTO's in util? // TODO: make proper DTO's in util?
@ -92,7 +92,7 @@ router.get(
accent_color: user.accent_color, accent_color: user.accent_color,
banner: user.banner, banner: user.banner,
pronouns: user.pronouns, 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 = { const guildMemberProfile = {