mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-17 21:30:31 +00:00
fix: issues related to PUT operations
This commit is contained in:
@@ -35,7 +35,7 @@ export function useEditUser(props) {
|
||||
const queryClient = useQueryClient();
|
||||
const apiRequest = useApiRequest();
|
||||
|
||||
return useMutation(([id, values]) => apiRequest.post(`users/${id}`, values), {
|
||||
return useMutation(([id, values]) => apiRequest.put(`users/${id}`, values), {
|
||||
onSuccess: (res, [id, values]) => {
|
||||
queryClient.invalidateQueries([t.USER, id]);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user