Skip to content

Commit 384ac71

Browse files
committed
Add deleteUser method in actions
1 parent 9ae723e commit 384ac71

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

backend/src/store/actions.js

+3
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,9 @@ export function updateCustomer({commit}, customer) {
185185
export function deleteCustomer({commit}, customer) {
186186
return axiosClient.delete(`/customers/${customer.id}`)
187187
}
188+
export function deleteUser({commit}, user) {
189+
return axiosClient.delete(`/users/${user.id}`)
190+
}
188191

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

0 commit comments

Comments
 (0)