1
0
mirror of https://github.com/spacebarchat/server.git synced 2024-09-22 02:31:36 +02:00

Merge pull request #58 from notsapinho/patch-1

🐛 fix pipeline
This commit is contained in:
Flam3rboy 2021-04-07 03:03:07 +02:00 committed by GitHub
commit 12dbaf78de
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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();