diff --git a/apps/dokploy/components/dashboard/database/backups/update-backup.tsx b/apps/dokploy/components/dashboard/database/backups/update-backup.tsx index 397ca7f00..a140a0e65 100644 --- a/apps/dokploy/components/dashboard/database/backups/update-backup.tsx +++ b/apps/dokploy/components/dashboard/database/backups/update-backup.tsx @@ -47,7 +47,7 @@ const UpdateBackupSchema = z.object({ prefix: z.string().min(1, "Prefix required"), enabled: z.boolean(), database: z.string().min(1, "Database required"), - keepLatestCount: z.number(), + keepLatestCount: z.coerce.number(), }); type UpdateBackup = z.infer; @@ -272,7 +272,7 @@ export const UpdateBackup = ({ backupId, refetch }: Props) => { Keep the latest - + Optional. If provided, only keeps the latest N backups in the cloud.