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 | ceb770fb5b6648c18d66d6997c8916ed60b8c192 (patch) | |
tree | 1995cbe4ec0dfe53860d8520b1de39ed4e02e0d6 /gateway | |
parent | Fix gateway not listening for new channels events (diff) | |
download | server-ceb770fb5b6648c18d66d6997c8916ed60b8c192.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); |