[ios][database] updated keepSynced to now work with modifiers

This commit is contained in:
Salakar 2017-08-05 21:43:53 +01:00
parent 913bb4e500
commit 78e9f4b7c7
1 changed files with 24 additions and 20 deletions

View File

@ -31,9 +31,13 @@ RCT_EXPORT_METHOD(setPersistence:(NSString *) appName
}
RCT_EXPORT_METHOD(keepSynced:(NSString *) appName
refId:(nonnull NSNumber *) refId
path:(NSString *) path
modifiers:(NSArray *) modifiers
state:(BOOL) state) {
[[self getReferenceForAppPath:appName path:path] keepSynced:state];
FIRDatabaseQuery * query = [self getInternalReferenceForApp:appName refId:refId path:path modifiers:modifiers keep:false].query;
[query keepSynced:state];
}
RCT_EXPORT_METHOD(transactionTryCommit:(NSString *) appName