1
0
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:
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

2
package-lock.json generated
View File

@ -11786,4 +11786,4 @@
}
}
}
}
}

View File

@ -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 = {