requested changes

This commit is contained in:
Daniel Hougaard
2024-11-11 21:45:06 +04:00
parent 00e68dc0bf
commit 21024b0d72
11 changed files with 12 additions and 11 deletions
+1 -1
View File
@@ -91,7 +91,7 @@ export const useUpdateServerEncryptionStrategy = () => {
const queryClient = useQueryClient();
return useMutation({
mutationFn: async (strategy: RootKeyEncryptionStrategy) => {
await apiRequest.post("/api/v1/admin/encryption-strategies", { strategy });
await apiRequest.patch("/api/v1/admin/encryption-strategies", { strategy });
},
onSuccess: () => {
queryClient.invalidateQueries(adminQueryKeys.getServerEncryptionStrategies());