This commit is contained in:
notsapinho 2021-04-06 22:00:58 -03:00 committed by GitHub
parent d8b23cace0
commit d0d2084c78
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: [{ '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();