Merge pull request #1231 from CyberL1/fix/user-profile-colors
This commit is contained in:
commit
a5e875c3d2
@ -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 = {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user