1
0
mirror of https://github.com/spacebarchat/server.git synced 2024-11-25 11:43:07 +01:00

Remove unneeded comments

This commit is contained in:
Madeline 2022-12-17 19:05:29 +11:00
parent 64596a7f3c
commit 631213b4ec
No known key found for this signature in database
GPG Key ID: 1958E017C36F2E47

View File

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