From e89ff73b764fe611d27609708378accac78bfe1b Mon Sep 17 00:00:00 2001 From: Liam Date: Fri, 11 Oct 2024 01:04:27 +0100 Subject: [PATCH] fix cron time oops --- projects/backend/src/index.ts | 2 +- projects/backend/src/service/player.service.ts | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/projects/backend/src/index.ts b/projects/backend/src/index.ts index 1fdbda2..4ae9c79 100644 --- a/projects/backend/src/index.ts +++ b/projects/backend/src/index.ts @@ -32,7 +32,7 @@ export const app = new Elysia(); app.use( cron({ name: "player-statistics-tracker-cron", - pattern: "0 1 * * *", // Every day at 00:01 (midnight) + pattern: "1 0 * * *", // Every day at 00:01 (London time) timezone: "Europe/London", run: async () => { console.log("Tracking player statistics..."); diff --git a/projects/backend/src/service/player.service.ts b/projects/backend/src/service/player.service.ts index 8c23956..c1cb7bb 100644 --- a/projects/backend/src/service/player.service.ts +++ b/projects/backend/src/service/player.service.ts @@ -65,7 +65,6 @@ export class PlayerService { /** * Tracks a players statistics * - * @param dateToday the date to track * @param foundPlayer the player to track */ public static async trackScoreSaberPlayer(foundPlayer: PlayerDocument) {