diff options
Diffstat (limited to 'Firestore/Source/Local/FSTMemoryRemoteDocumentCache.mm')
-rw-r--r-- | Firestore/Source/Local/FSTMemoryRemoteDocumentCache.mm | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Firestore/Source/Local/FSTMemoryRemoteDocumentCache.mm b/Firestore/Source/Local/FSTMemoryRemoteDocumentCache.mm index 7d5e1e2..b0d6807 100644 --- a/Firestore/Source/Local/FSTMemoryRemoteDocumentCache.mm +++ b/Firestore/Source/Local/FSTMemoryRemoteDocumentCache.mm @@ -60,11 +60,10 @@ NS_ASSUME_NONNULL_BEGIN // Documents are ordered by key, so we can use a prefix scan to narrow down the documents // we need to match the query against. - FSTDocumentKey *prefix = [FSTDocumentKey - keyWithPath:[FSTResourcePath resourcePathWithCPPResourcePath:query.path.Append("")]]; + FSTDocumentKey *prefix = [FSTDocumentKey keyWithPath:query.path.Append("")]; NSEnumerator<FSTDocumentKey *> *enumerator = [self.docs keyEnumeratorFrom:prefix]; for (FSTDocumentKey *key in enumerator) { - if (!query.path.IsPrefixOf([key.path toCPPResourcePath])) { + if (!query.path.IsPrefixOf(key.path)) { break; } FSTMaybeDocument *maybeDoc = self.docs[key]; |