From 8f625d53d046bd0edbe5df6502407131b442fa3a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hans=20Kn=C3=B6chel?= Date: Tue, 27 Sep 2022 13:12:32 +0200 Subject: [PATCH] fix: fix merge issues --- ios/Classes/FirebaseFirestoreModule.m | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ios/Classes/FirebaseFirestoreModule.m b/ios/Classes/FirebaseFirestoreModule.m index abb0ca9..2b27352 100644 --- a/ios/Classes/FirebaseFirestoreModule.m +++ b/ios/Classes/FirebaseFirestoreModule.m @@ -74,9 +74,10 @@ - (void)getSingleDocument:(id)params KrollCallback *callback = params[@"callback"]; NSString *collection = params[@"collection"]; NSString *document = params[@"document"]; - FIRDocumentReference *docRef = [[self.db collectionWithPath:collection] documentWithPath:document]; - [docRef getDocumentWithCompletion:^(FIRQuerySnapshot * _Nullable snapshot, NSError * _Nullable error) { + FIRDocumentReference *documentReference = [[FIRFirestore.firestore collectionWithPath:collection] documentWithPath:document]; + + [documentReference getDocumentWithCompletion:^(FIRDocumentSnapshot * _Nullable snapshot, NSError * _Nullable error) { if (error != nil) { [callback call:@[@{ @"success": @(NO), @"error": error.localizedDescription }] thisObject:self]; return;