mirror of
https://github.com/spacebarchat/server.git
synced 2024-11-11 13:14:06 +01:00
commit
12dbaf78de
@ -13,7 +13,7 @@ export async function setupListener(this: WebSocket) {
|
|||||||
|
|
||||||
const eventStream = new MongooseCache(
|
const eventStream = new MongooseCache(
|
||||||
db.collection("events"),
|
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 }
|
{ onlyEvents: true }
|
||||||
);
|
);
|
||||||
await eventStream.init();
|
await eventStream.init();
|
||||||
|
Loading…
Reference in New Issue
Block a user