Skip to content

Commit 4db34c4

Browse files
Fix compilation for MemoryRemoteDocumentCache
1 parent 6555aa7 commit 4db34c4

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

packages/firestore/src/local/memory_persistence.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ import {
5252
} from './persistence_transaction';
5353
import { ReferenceSet } from './reference_set';
5454
import { TargetData } from './target_data';
55+
import { SnapshotVersion } from '../core/snapshot_version';
5556

5657
const LOG_TAG = 'MemoryPersistence';
5758
/**
@@ -284,7 +285,7 @@ export class MemoryEagerDelegate implements MemoryReferenceDelegate {
284285
const key = DocumentKey.fromPath(path);
285286
return this.isReferenced(txn, key).next(isReferenced => {
286287
if (!isReferenced) {
287-
changeBuffer.removeEntry(key);
288+
changeBuffer.removeEntry(key, SnapshotVersion.min());
288289
}
289290
});
290291
}
@@ -422,7 +423,7 @@ export class MemoryLruDelegate implements ReferenceDelegate, LruDelegate {
422423
return this.isPinned(txn, key, upperBound).next(isPinned => {
423424
if (!isPinned) {
424425
count++;
425-
changeBuffer.removeEntry(key);
426+
changeBuffer.removeEntry(key, SnapshotVersion.min());
426427
}
427428
});
428429
});

0 commit comments

Comments
 (0)