File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -358,7 +358,8 @@ @implementation FirestackDatabase
358
358
NSDictionary *props =
359
359
[self snapshotToDict: snapshot];
360
360
[self
361
- sendJSEvent: eventName
361
+ sendJSEvent: DATABASE_DATA_EVENT
362
+ title: eventName
362
363
props: @{
363
364
@" eventName" : eventName,
364
365
@" path" : path,
@@ -676,6 +677,7 @@ - (NSDictionary *) getAndSendDatabaseError:(NSError *) error
676
677
};
677
678
[self
678
679
sendJSEvent: DATABASE_ERROR_EVENT
680
+ title: DATABASE_ERROR_EVENT
679
681
props: evt];
680
682
681
683
return evt;
@@ -686,11 +688,12 @@ - (NSDictionary *) getAndSendDatabaseError:(NSError *) error
686
688
return @[DATABASE_DATA_EVENT, DATABASE_ERROR_EVENT];
687
689
}
688
690
689
- - (void ) sendJSEvent : (NSString *)title
691
+ - (void ) sendJSEvent : (NSString *)type
692
+ title : (NSString *)title
690
693
props : (NSDictionary *)props
691
694
{
692
695
@try {
693
- [self sendEventWithName: DATABASE_DATA_EVENT
696
+ [self sendEventWithName: type
694
697
body: @{
695
698
@" eventName" : title,
696
699
@" body" : props
You can’t perform that action at this time.
0 commit comments