Last active
December 16, 2019 13:28
-
-
Save anoobbava/784d907a66b764f07e716b49a96d4a13 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
updateTodoAction ({ commit }, todo) { | |
return new Promise((resolve, reject) => { | |
ApiHelper.updateTodo(todo) | |
.then(response => { | |
commit('updateTodoMutation', response) | |
resolve(response) | |
}) | |
.catch(error => { | |
reject(error) | |
}) | |
}) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment