Skip to content

Commit 1e550fc

Browse files
Cleanup
1 parent bc3817e commit 1e550fc

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

packages/firestore/src/local/indexeddb_index_manager.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -996,7 +996,7 @@ export class IndexedDbIndexManager implements IndexManager {
996996
!offset ||
997997
indexOffsetComparator(index.indexState.offset, offset) < 0
998998
) {
999-
offset = IndexOffset.min();
999+
offset = index.indexState.offset;
10001000
}
10011001
});
10021002
}

packages/firestore/src/local/query_engine.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -195,9 +195,11 @@ export class QueryEngine {
195195
offset.readTime
196196
)
197197
) {
198-
// A limit query whose boundaries change due to local edits can be re-run against the cache
199-
// by excluding the limit. This ensures that all documents that match the query's filters are
200-
// included in the result set. The SDK can then apply the limit once all local edits are
198+
// A limit query whose boundaries change due to local
199+
// edits can be re-run against the cache by excluding the
200+
// limit. This ensures that all documents that match the
201+
// query's filters are included in the result set. The SDK
202+
// can then apply the limit once all local edits are
201203
// incorporated.
202204
return this.performQueryUsingIndex(
203205
transaction,

0 commit comments

Comments
 (0)