Skip to content

Commit 87a9b71

Browse files
committed
fix 'GetValueAsync' function
1 parent 2a838cb commit 87a9b71

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Assets/FirebaseREST/Database/DatabaseReference.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -501,7 +501,7 @@ public override void GetValueAsync(int timeout, Action<Response<DataSnapshot>> O
501501
op.completed += ((ao) => HandleFirebaseDatabaseResponse(op, (res) =>
502502
{
503503
if (OnComplete != null)
504-
OnComplete(new Response<DataSnapshot>(null, true, (int)ResponseCode.SUCCESS, new FirebaseDataSnapshot(this, Json.Deserialize(res.data))));
504+
OnComplete(new Response<DataSnapshot>(res.message, res.success, res.code, new FirebaseDataSnapshot(this, Json.Deserialize(res.data))));
505505
}));
506506
}
507507

0 commit comments

Comments
 (0)