[ios][database] updated keepSynced to now work with modifiers
This commit is contained in:
parent
913bb4e500
commit
78e9f4b7c7
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue