fix cron time oops
Some checks failed
Deploy Backend / deploy (push) Has been cancelled

This commit is contained in:
Lee 2024-10-11 01:04:27 +01:00
parent 6b2f9fa308
commit e89ff73b76
2 changed files with 1 additions and 2 deletions

View File

@ -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...");

View File

@ -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) {