Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- async updateRecipe({ dispatch, commit }, recipe) {
- const response = await gqlClient.mutate({
- mutation: RECIPE_UPDATE_MUTATION,
- variables: {
- ...recipe,
- created_by: authService.getUserId()
- }
- });
- window.location.assign('/recipes');
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement