Removed ChannelService, more fixes

This commit is contained in:
AlTech98
2021-09-18 18:36:29 +02:00
parent 97e0c8709b
commit ada95b6c39
11 changed files with 131 additions and 139 deletions
+1 -1
View File
@@ -32,7 +32,7 @@ export async function setupListener(this: WebSocket) {
});
const guilds = members.map((x) => x.guild);
const recipients = await Recipient.find({
where: { user_id: this.user_id },
where: { user_id: this.user_id, closed: false },
relations: ["channel"],
});
const dm_channels = recipients.map((x) => x.channel);