|
|
@ -40,7 +40,7 @@ export function createUsersStore() { |
|
|
return await response.json() |
|
|
return await response.json() |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
async function updateRoles(data) { |
|
|
async function save(data) { |
|
|
try { |
|
|
try { |
|
|
const res = await post(`/api/admin/users`, data) |
|
|
const res = await post(`/api/admin/users`, data) |
|
|
const json = await res.json() |
|
|
const json = await res.json() |
|
|
@ -57,8 +57,8 @@ export function createUsersStore() { |
|
|
invite, |
|
|
invite, |
|
|
acceptInvite, |
|
|
acceptInvite, |
|
|
create, |
|
|
create, |
|
|
updateRoles, |
|
|
save, |
|
|
del, |
|
|
delete: del, |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|