1
0
mirror of https://github.com/spacebarchat/server.git synced 2024-11-12 21:52:40 +01:00

Remove unneeded comments

This commit is contained in:
Madeline 2022-12-17 19:05:29 +11:00
parent e4d85450b8
commit b25fa163ae

View File

@ -154,18 +154,18 @@ export async function onIdentify(this: WebSocket, data: Payload) {
return guild; return guild;
}); });
// TODO: Rewrite this. Perhaps a DTO?
const user_guild_settings_entries = members.map((x) => ({ const user_guild_settings_entries = members.map((x) => ({
...DefaultUserGuildSettings, ...DefaultUserGuildSettings,
...x.settings, ...x.settings,
guild_id: x.guild.id, guild_id: x.guild.id,
// disgusting
channel_overrides: Object.entries( channel_overrides: Object.entries(
x.settings.channel_overrides ?? {}, x.settings.channel_overrides ?? {},
).map((y) => ({ ).map((y) => ({
...y[1], ...y[1],
channel_id: y[0], channel_id: y[0],
})), })),
})) as any as UserGuildSettings[]; // VERY disgusting. don't care. })) as any as UserGuildSettings[];
const channels = recipients.map((x) => { const channels = recipients.map((x) => {
// @ts-ignore // @ts-ignore