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: 🐛 fix pipeline 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(-) (limited to 'src') 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(); -- cgit 1.5.1