Skip to content

Commit

Permalink
Add deleteUser method in actions
Browse files Browse the repository at this point in the history
  • Loading branch information
thecodeholic committed Aug 27, 2024
1 parent 9ae723e commit 384ac71
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions backend/src/store/actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,9 @@ export function updateCustomer({commit}, customer) {
export function deleteCustomer({commit}, customer) {
return axiosClient.delete(`/customers/${customer.id}`)
}
export function deleteUser({commit}, user) {
return axiosClient.delete(`/users/${user.id}`)
}

export function getCategories({commit, state}, {sort_field, sort_direction} = {}) {
commit('setCategories', [true])
Expand Down

0 comments on commit 384ac71

Please sign in to comment.