Skip to content

Commit 6f44df2

Browse files
committed
Fix incorrect push reference returned
1 parent 6caac60 commit 6f44df2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ios/Firestack/FirestackDatabase.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -431,7 +431,7 @@ - (id) init
431431
FIRDatabaseReference *ref = [self getPathRef:path];
432432
FIRDatabaseReference *newRef = [ref childByAutoId];
433433

434-
NSURL *url = [NSURL URLWithString:ref.URL];
434+
NSURL *url = [NSURL URLWithString:newRef.URL];
435435
NSString *newPath = [url path];
436436

437437
if ([props count] > 0) {

0 commit comments

Comments
 (0)