Skip to content

Commit 0941ec9

Browse files
[autofix.ci] apply automated fixes
1 parent 879218a commit 0941ec9

2 files changed

Lines changed: 12 additions & 3 deletions

File tree

apps/schedules/src/index.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,10 @@ process.on("uncaughtException", (err) => {
104104
});
105105

106106
process.on("unhandledRejection", (reason, _promise) => {
107-
logger.error(reason instanceof Error ? reason : { reason: String(reason) }, "Unhandled Rejection at: Promise");
107+
logger.error(
108+
reason instanceof Error ? reason : { reason: String(reason) },
109+
"Unhandled Rejection at: Promise",
110+
);
108111
});
109112

110113
const port = Number.parseInt(process.env.PORT || "3000");

apps/schedules/src/utils.ts

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,10 @@ export const initializeJobs = async () => {
142142
cronSchedule: CLEANUP_CRON_JOB,
143143
});
144144
} catch (error) {
145-
logger.error(error, `Failed to schedule cleanup job for server ${serverId}`);
145+
logger.error(
146+
error,
147+
`Failed to schedule cleanup job for server ${serverId}`,
148+
);
146149
}
147150
}
148151

@@ -255,7 +258,10 @@ export const initializeJobs = async () => {
255258
cronSchedule: volumeBackup.cronExpression,
256259
});
257260
} catch (error) {
258-
logger.error(error, `Failed to schedule volume backup ${volumeBackup.volumeBackupId}`);
261+
logger.error(
262+
error,
263+
`Failed to schedule volume backup ${volumeBackup.volumeBackupId}`,
264+
);
259265
}
260266
}
261267

0 commit comments

Comments
 (0)