refactor: cleanup startup code and add cron job

This commit is contained in:
Nicolas Meienberger
2025-09-23 23:01:42 +02:00
parent 5695a8c700
commit db88bb6de2
5 changed files with 64 additions and 95 deletions

View File

@@ -13,3 +13,7 @@ export const handleServiceError = (error: unknown) => {
logger.error("Unhandled service error:", error);
return { message: "Internal Server Error", status: 500 as const };
};
export const toMessage = (err: unknown): string => {
return err instanceof Error ? err.message : String(err);
};