We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f66838f commit 056f45cCopy full SHA for 056f45c
packages/firestore/ios/RNFBFirestore/RNFBFirestoreCollectionModule.m
@@ -246,9 +246,12 @@ - (void)invalidate {
246
[aggregateFields addObject:[FIRAggregateField aggregateFieldForAverageOfField:fieldPath]];
247
} else {
248
NSString *reason = [@"Invalid Aggregate Type: " stringByAppendingString:aggregateType];
249
- @throw [NSException exceptionWithName:@"RNFB Firestore: Invalid Aggregate Type"
250
- reason:reason
251
- userInfo:nil];
+ [RNFBFirestoreCommon
+ promiseRejectFirestoreException:reject
+ error:[NSException exceptionWithName:
252
+ @"RNFB Firestore: Invalid Aggregate Type"
253
+ reason:reason
254
+ userInfo:nil]];
255
}
256
257
0 commit comments