We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ff0abd4 commit 3004589Copy full SHA for 3004589
src/change_stream.ts
@@ -794,7 +794,7 @@ export class ChangeStream<
794
}
795
796
async *[Symbol.asyncIterator](): AsyncGenerator<TChange, void, void> {
797
- if (this.isClosed) {
+ if (this.closed) {
798
return;
799
800
@@ -843,7 +843,7 @@ export class ChangeStream<
843
* @throws MongoChangeStreamError if the underlying cursor or the change stream is closed
844
*/
845
stream(options?: CursorStreamOptions): Readable & AsyncIterable<TChange> {
846
847
throw new MongoChangeStreamError(CHANGESTREAM_CLOSED_ERROR);
848
849
0 commit comments