From 384ac7146f4d01d56dc72be573094076773eb057 Mon Sep 17 00:00:00 2001 From: Zura Sekhniashvili Date: Tue, 27 Aug 2024 19:44:40 +0400 Subject: [PATCH] Add deleteUser method in actions --- backend/src/store/actions.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/backend/src/store/actions.js b/backend/src/store/actions.js index 04e8a68..84d641d 100644 --- a/backend/src/store/actions.js +++ b/backend/src/store/actions.js @@ -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])