mirror of
https://github.com/spacebarchat/server.git
synced 2024-11-22 02:12:40 +01:00
Remove unneeded comments
This commit is contained in:
parent
e4d85450b8
commit
b25fa163ae
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user