Skip to content

Commit

Permalink
listen to all docs for now
Browse files Browse the repository at this point in the history
  • Loading branch information
rhit-windsors committed Nov 10, 2024
1 parent 8ca2eef commit d4abbf7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/frontend/pages/api/experiments/listen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export default async function handler(req, res) {
const experimentsCollection = db.collection(COLLECTION_EXPERIMENTS);

// Set up a Change Stream for real-time updates
const pipeline = [{ $match: { "creator": uid } }];
const pipeline = [];
const options = { fullDocument: "updateLookup" };
const changeStream = experimentsCollection.watch(pipeline, options);

Expand Down

0 comments on commit d4abbf7

Please sign in to comment.