diff options
Diffstat (limited to 'Firestore/Source/API/FIRCollectionReference.mm')
-rw-r--r-- | Firestore/Source/API/FIRCollectionReference.mm | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/Firestore/Source/API/FIRCollectionReference.mm b/Firestore/Source/API/FIRCollectionReference.mm index cb7b61a..9560d13 100644 --- a/Firestore/Source/API/FIRCollectionReference.mm +++ b/Firestore/Source/API/FIRCollectionReference.mm @@ -101,8 +101,7 @@ NS_ASSUME_NONNULL_BEGIN if (parentPath.empty()) { return nil; } else { - FSTDocumentKey *key = - [FSTDocumentKey keyWithPath:[FSTResourcePath resourcePathWithCPPResourcePath:parentPath]]; + FSTDocumentKey *key = [FSTDocumentKey keyWithPath:parentPath]; return [FIRDocumentReference referenceWithKey:key firestore:self.firestore]; } } @@ -135,9 +134,7 @@ NS_ASSUME_NONNULL_BEGIN } - (FIRDocumentReference *)documentWithAutoID { - const ResourcePath path = self.query.path.Append(CreateAutoId()); - FSTDocumentKey *key = - [FSTDocumentKey keyWithPath:[FSTResourcePath resourcePathWithCPPResourcePath:path]]; + FSTDocumentKey *key = [FSTDocumentKey keyWithPath:self.query.path.Append(CreateAutoId())]; return [FIRDocumentReference referenceWithKey:key firestore:self.firestore]; } |