Skip to content

Commit 3004589

Browse files
committed
chore: fix closed
1 parent ff0abd4 commit 3004589

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/change_stream.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -794,7 +794,7 @@ export class ChangeStream<
794794
}
795795

796796
async *[Symbol.asyncIterator](): AsyncGenerator<TChange, void, void> {
797-
if (this.isClosed) {
797+
if (this.closed) {
798798
return;
799799
}
800800

@@ -843,7 +843,7 @@ export class ChangeStream<
843843
* @throws MongoChangeStreamError if the underlying cursor or the change stream is closed
844844
*/
845845
stream(options?: CursorStreamOptions): Readable & AsyncIterable<TChange> {
846-
if (this.isClosed) {
846+
if (this.closed) {
847847
throw new MongoChangeStreamError(CHANGESTREAM_CLOSED_ERROR);
848848
}
849849

0 commit comments

Comments
 (0)