javascript - Why firebase database now returns null when used to work great? -


i have firebase web app used read , write firebase database fine. of week same code:

var ref = new firebase ('https://myapp.firebaseio.com/web/data'); ref.child(id + "/slot" + timeslot + "/vote").on("value",function(snapshot){ console.log(snapshot.val()); // returning null sval = (snapshot.val()); 

now returns null sval.

can please explain 1.why , 2.what should it? thank you.


Comments

Popular posts from this blog

javascript - Thinglink image not visible until browser resize -

firebird - Error "invalid transaction handle (expecting explicit transaction start)" executing script from Delphi -

mongodb - How to keep track of users making Stripe Payments -