From 68d68c058814ac745d9d733068aec62abd81f4e6 Mon Sep 17 00:00:00 2001 From: Eddie Jaoude Date: Sun, 15 Sep 2024 07:55:01 +0100 Subject: [PATCH] fix: cron to run once per day only --- src/app.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app.service.ts b/src/app.service.ts index d7b5ee8..0e5ee2a 100644 --- a/src/app.service.ts +++ b/src/app.service.ts @@ -27,7 +27,7 @@ export class AppService { }); } - @Cron('00 10 * * * *') + @Cron('00 10 08 * * *') async refresh(): Promise { const prisma = this.prisma; const repos = { daily: 0, weekly: 0, monthly: 0 };