Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion app/models/server/models/_oplogHandle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ class OplogHandle {

this.stream = oplogCollection.find(oplogSelector, {
tailable: true,
// awaitData: true,
awaitData: true,
}).stream();

// Prevent warning about many listeners, we add 11
Expand Down
8 changes: 8 additions & 0 deletions mongodb.aug.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import 'mongodb';

declare module 'mongodb' {
// eslint-disable-next-line @typescript-eslint/interface-name-prefix
export interface FindOneOptions<T> {
awaitData?: boolean;
}
}