mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-09-22 13:39:35 +00:00
fix: use put instead of post and improve var naming
This commit is contained in:
@@ -8,7 +8,7 @@ export const useUpdateExternalGroupOrgRoleMappings = () => {
|
||||
const queryClient = useQueryClient();
|
||||
return useMutation({
|
||||
mutationFn: async (payload: TSyncExternalGroupOrgRoleMappingsDTO) => {
|
||||
const { data } = await apiRequest.post("/api/v1/external-group-mappings", payload);
|
||||
const { data } = await apiRequest.put("/api/v1/external-group-mappings", payload);
|
||||
|
||||
return data;
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user