Advertisement
Guest User

Untitled

a guest
Mar 21st, 2019
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. async updateRecipe({ dispatch, commit }, recipe) {
  2. const response = await gqlClient.mutate({
  3. mutation: RECIPE_UPDATE_MUTATION,
  4. variables: {
  5. ...recipe,
  6. created_by: authService.getUserId()
  7. }
  8. });
  9.  
  10. window.location.assign('/recipes');
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement