flamelink / flamelink-js-sdk

🦊 Official Flamelink JavaScript SDK for both the Firebase Realtime database and Cloud Firestore
https://flamelink.github.io/flamelink-js-sdk
MIT License
43 stars 5 forks source link

flamelink.users.addToDB - TypeError: api.ref(...).set is not a function #61

Closed ribalnasr closed 5 years ago

ribalnasr commented 5 years ago

Don't hate me!

flamelink.users.addToDB({
    uid: '_USER_ID_'
    data: {}
});

returns this error: TypeError: api.ref(...).set is not a function.

(always using Cloud Firestore)

jperasmus commented 5 years ago

hahaha, not at all, I appreciate you picking up these things. I'll take a look

charbelalkazzi commented 5 years ago

any update concerning this issue? I'm experiencing the same problem

jperasmus commented 5 years ago

Fix should now be available in v1.0.0-alpha.13

ribalnasr commented 5 years ago

just tested it! works great.