From d8b23cace007e9f7096f9da0febcfd445bafde2c Mon Sep 17 00:00:00 2001 From: notsapinho <52896767+notsapinho@users.noreply.github.com> Date: Tue, 6 Apr 2021 21:59:47 -0300 Subject: [PATCH 1/2] =?UTF-8?q?=F0=9F=90=9B=20fix=20pipeline?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/listener/listener.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/listener/listener.ts b/src/listener/listener.ts index 5f3ee93b..603a28aa 100644 --- a/src/listener/listener.ts +++ b/src/listener/listener.ts @@ -13,7 +13,7 @@ export async function setupListener(this: WebSocket) { const eventStream = new MongooseCache( db.collection("events"), - [{ $match: { $or: [{ guild_id: { $in: user.guilds } }, { user_id: this.user_id }] } }], + [{ $match: { $or: [{ 'fullDocument.guild_id': { $in: user.guilds } }, { 'fullDocument.user_id': this.user_id }] } }], { onlyEvents: true } ); await eventStream.init(); From d0d2084c78b8af7db5b9f971588497b0be780547 Mon Sep 17 00:00:00 2001 From: notsapinho <52896767+notsapinho@users.noreply.github.com> Date: Tue, 6 Apr 2021 22:00:58 -0300 Subject: [PATCH 2/2] =?UTF-8?q?=F0=9F=8E=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/listener/listener.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/listener/listener.ts b/src/listener/listener.ts index 603a28aa..82e6fa85 100644 --- a/src/listener/listener.ts +++ b/src/listener/listener.ts @@ -13,7 +13,7 @@ export async function setupListener(this: WebSocket) { const eventStream = new MongooseCache( db.collection("events"), - [{ $match: { $or: [{ 'fullDocument.guild_id': { $in: user.guilds } }, { 'fullDocument.user_id': this.user_id }] } }], + [{ $match: { $or: [{ "fullDocument.guild_id": { $in: user.guilds } }, { "fullDocument.user_id": this.user_id }] } }], { onlyEvents: true } ); await eventStream.init();