Skip to content

Commit 5118935

Browse files
authored
Fix to #1027 to allow SnapshotVersion == 0 (#1033)
1 parent 2d7a74c commit 5118935

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

packages/firestore/src/local/query_data.ts

+6-2
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,12 @@ export class QueryData {
7070
this.query,
7171
this.targetId,
7272
this.purpose,
73-
overwrite.snapshotVersion || this.snapshotVersion,
74-
overwrite.resumeToken || this.resumeToken
73+
overwrite.snapshotVersion === undefined
74+
? this.snapshotVersion
75+
: overwrite.snapshotVersion,
76+
overwrite.resumeToken === undefined
77+
? this.resumeToken
78+
: overwrite.resumeToken
7579
);
7680
}
7781

0 commit comments

Comments
 (0)