misc: addressed minor kms issues

This commit is contained in:
Sheen Capadngan
2024-07-30 23:19:07 +05:30
committed by =
parent 6a156371c0
commit 05d7e26f8b
4 changed files with 32 additions and 10 deletions
+3 -1
View File
@@ -69,7 +69,9 @@ export const useUpdateProjectKms = (projectId: string) => {
mutationFn: async (
updatedData: { type: KmsType.Internal } | { type: KmsType.External; kmsId: string }
) => {
const { data } = await apiRequest.patch(`/api/v1/workspace/${projectId}/kms`, updatedData);
const { data } = await apiRequest.patch(`/api/v1/workspace/${projectId}/kms`, {
kms: updatedData
});
return data;
},
+1 -1
View File
@@ -95,7 +95,7 @@ export const AddExternalKmsSchema = z.object({
.refine((v) => slugify(v) === v, {
message: "Alias must be a valid slug"
}),
description: z.string().trim().min(1).optional(),
description: z.string().trim().optional(),
provider: ExternalKmsInputSchema
});