mirror of
https://github.com/Dokploy/dokploy.git
synced 2026-07-08 23:45:22 +02:00
Refactor backup and command execution utilities for improved robustness
- Removed unnecessary console logging in the backup scheduling utility to streamline output. - Updated container ID retrieval to handle potential null values gracefully, enhancing error handling. - Modified command execution logging to use single quotes for consistency and improved readability.
This commit is contained in:
@@ -21,9 +21,6 @@ export const scheduleBackup = (backup: BackupSchedule) => {
|
||||
compose,
|
||||
} = backup;
|
||||
scheduleJob(backupId, schedule, async () => {
|
||||
console.log("backup", backup);
|
||||
console.log("databaseType", databaseType);
|
||||
console.log("schedule", schedule);
|
||||
if (backup.backupType === "database") {
|
||||
if (databaseType === "postgres" && postgres) {
|
||||
await runPostgresBackup(postgres, backup);
|
||||
|
||||
Reference in New Issue
Block a user