Skip to content

Commit

Permalink
fix: fix merge issues
Browse files Browse the repository at this point in the history
  • Loading branch information
hansemannn committed Sep 27, 2022
1 parent 0bd362a commit 8f625d5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions ios/Classes/FirebaseFirestoreModule.m
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 8f625d5

Please sign in to comment.