mirror of
https://github.com/dokploy/dokploy.git
synced 2026-06-13 19:09:49 +00:00
[autofix.ci] apply automated fixes
This commit is contained in:
@@ -104,7 +104,10 @@ process.on("uncaughtException", (err) => {
|
||||
});
|
||||
|
||||
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");
|
||||
|
||||
@@ -142,7 +142,10 @@ export const initializeJobs = async () => {
|
||||
cronSchedule: CLEANUP_CRON_JOB,
|
||||
});
|
||||
} 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,
|
||||
});
|
||||
} 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