From 6cc44c468e094d645b20b56d4f4661567a250957 Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Tue, 30 Apr 2024 20:38:21 -0500 Subject: [PATCH] Don't await cleanupMedia on startup --- src/cron.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cron.ts b/src/cron.ts index bfaf773d..bbddaf3b 100644 --- a/src/cron.ts +++ b/src/cron.ts @@ -25,5 +25,5 @@ async function cleanupMedia() { console.info(`Removed ${media?.length ?? 0} orphaned media files.`); } -await cleanupMedia(); +cleanupMedia(); cron.every15Minute(cleanupMedia);