summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authornotsapinho <52896767+notsapinho@users.noreply.github.com>2021-04-06 21:59:47 -0300
committerGitHub <noreply@github.com>2021-04-06 21:59:47 -0300
commitd8b23cace007e9f7096f9da0febcfd445bafde2c (patch)
tree859c675bcf14ff840dacca4e546fb3a4d3798310 /src
parent:art: add util build script (diff)
downloadserver-d8b23cace007e9f7096f9da0febcfd445bafde2c.tar.xz
🐛 fix pipeline
Diffstat (limited to 'src')
-rw-r--r--src/listener/listener.ts2
1 files changed, 1 insertions, 1 deletions
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();