From 2c258c84eb729d845e483d523d4996903f91df7b Mon Sep 17 00:00:00 2001 From: Mauricio Siu <47042324+Siumauricio@users.noreply.github.com> Date: Sun, 29 Dec 2024 15:56:30 -0600 Subject: [PATCH] fix: add provider value in edit destination --- .../dashboard/settings/destination/update-destination.tsx | 2 ++ packages/server/src/db/schema/destination.ts | 1 + 2 files changed, 3 insertions(+) diff --git a/apps/dokploy/components/dashboard/settings/destination/update-destination.tsx b/apps/dokploy/components/dashboard/settings/destination/update-destination.tsx index 3ed26fef..71f87aad 100644 --- a/apps/dokploy/components/dashboard/settings/destination/update-destination.tsx +++ b/apps/dokploy/components/dashboard/settings/destination/update-destination.tsx @@ -92,6 +92,7 @@ export const UpdateDestination = ({ destinationId }: Props) => { name: data.name, region: data.region, secretAccessKey: data.secretAccessKey, + provider: data.provider || "", }); } }, [form, form.reset, data]); @@ -105,6 +106,7 @@ export const UpdateDestination = ({ destinationId }: Props) => { region: data.region, secretAccessKey: data.secretAccessKey, destinationId, + provider: data.provider || "", }) .then(async () => { toast.success("Destination Updated"); diff --git a/packages/server/src/db/schema/destination.ts b/packages/server/src/db/schema/destination.ts index 320a3d7c..7d7be614 100644 --- a/packages/server/src/db/schema/destination.ts +++ b/packages/server/src/db/schema/destination.ts @@ -82,6 +82,7 @@ export const apiUpdateDestination = createSchema endpoint: true, secretAccessKey: true, destinationId: true, + provider: true, }) .required() .extend({