diff options
author | AlTech98 <altech123159@gmail.com> | 2021-09-18 18:36:29 +0200 |
---|---|---|
committer | AlTech98 <altech123159@gmail.com> | 2021-09-18 18:36:29 +0200 |
commit | ada95b6c3938f9aa644aebc2bb26dbb073aa3324 (patch) | |
tree | 8bd28dfd7a6674becc41da906cea475448fa95b0 /gateway | |
parent | Fix gateway not listening for new channels events (diff) | |
download | server-ada95b6c3938f9aa644aebc2bb26dbb073aa3324.tar.xz |
Removed ChannelService, more fixes
Diffstat (limited to 'gateway')
-rw-r--r-- | gateway/src/listener/listener.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gateway/src/listener/listener.ts b/gateway/src/listener/listener.ts index 35841312..ae13cca7 100644 --- a/gateway/src/listener/listener.ts +++ b/gateway/src/listener/listener.ts @@ -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); |