Created
May 24, 2019 19:25
-
-
Save artosousa/42aa8273d27ef35831debe4df36bf06b to your computer and use it in GitHub Desktop.
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
addRecipe({ state }, payload) { | |
firebase | |
.database() | |
.ref('users') | |
.child(state.user.user.uid) | |
.push({ | |
image: payload.recipe.image, | |
label: payload.recipe.label, | |
ingredients: payload.recipe.ingredientLines | |
}); | |
}, | |
removeRecipe({ state }, payload) { | |
firebase | |
.database() | |
.ref('users') | |
.child(state.user.user.uid) | |
.remove(this.payload); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment