mirror of
https://github.com/Dokploy/dokploy.git
synced 2026-06-15 20:25:23 +02:00
[autofix.ci] apply automated fixes
This commit is contained in:
@@ -104,7 +104,10 @@ process.on("uncaughtException", (err) => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
process.on("unhandledRejection", (reason, _promise) => {
|
process.on("unhandledRejection", (reason, _promise) => {
|
||||||
logger.error(reason instanceof Error ? reason : { reason: String(reason) }, "Unhandled Rejection at: Promise");
|
logger.error(
|
||||||
|
reason instanceof Error ? reason : { reason: String(reason) },
|
||||||
|
"Unhandled Rejection at: Promise",
|
||||||
|
);
|
||||||
});
|
});
|
||||||
|
|
||||||
const port = Number.parseInt(process.env.PORT || "3000");
|
const port = Number.parseInt(process.env.PORT || "3000");
|
||||||
|
|||||||
@@ -142,7 +142,10 @@ export const initializeJobs = async () => {
|
|||||||
cronSchedule: CLEANUP_CRON_JOB,
|
cronSchedule: CLEANUP_CRON_JOB,
|
||||||
});
|
});
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
logger.error(error, `Failed to schedule cleanup job for server ${serverId}`);
|
logger.error(
|
||||||
|
error,
|
||||||
|
`Failed to schedule cleanup job for server ${serverId}`,
|
||||||
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -255,7 +258,10 @@ export const initializeJobs = async () => {
|
|||||||
cronSchedule: volumeBackup.cronExpression,
|
cronSchedule: volumeBackup.cronExpression,
|
||||||
});
|
});
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
logger.error(error, `Failed to schedule volume backup ${volumeBackup.volumeBackupId}`);
|
logger.error(
|
||||||
|
error,
|
||||||
|
`Failed to schedule volume backup ${volumeBackup.volumeBackupId}`,
|
||||||
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user