-
-
Save lubien/dc43f85ebec5d1b21e432d51ff5795b6 to your computer and use it in GitHub Desktop.
Estrutura atual das minhas promises
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const create = (userUID, customerObj) => { | |
const ref = database | |
.ref('user_data') | |
.child(userUID) | |
.child('customers') | |
.push() | |
const {key} = ref | |
return ref.set(customerObj) | |
.then(() => key) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment