mirror of
https://github.com/Dokploy/dokploy
synced 2025-06-26 18:27:59 +00:00
Update UpdateBackup component to enforce DatabaseType casting for backup databaseType. Modify backups schema to allow optional metadata field, enhancing flexibility for various database types.
This commit is contained in:
@@ -221,7 +221,7 @@ export const UpdateBackup = ({ backupId, refetch }: Props) => {
|
||||
databaseType:
|
||||
backup?.backupType === "compose"
|
||||
? selectedDatabaseType
|
||||
: backup?.databaseType,
|
||||
: (backup?.databaseType as DatabaseType),
|
||||
})
|
||||
.then(async () => {
|
||||
toast.success("Backup Updated");
|
||||
|
||||
Reference in New Issue
Block a user