From d5bfe989004e2e5610e0db54b41c727f866f3ce2 Mon Sep 17 00:00:00 2001 From: Asher Samuel Date: Thu, 10 Jul 2025 15:24:53 +0300 Subject: [PATCH] twick cron job interval for cashback --- internal/web_server/cron.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/internal/web_server/cron.go b/internal/web_server/cron.go index 021cf88..8d45a17 100644 --- a/internal/web_server/cron.go +++ b/internal/web_server/cron.go @@ -158,8 +158,7 @@ func ProcessBetCashback(ctx context.Context, betService *betSvc.Service) { task func() }{ { - spec: "*/10 * * * * *", // 10 seconds for testing - // spec: "0 0 0 * * *", // Daily at midnight + spec: "0 0 0 * * *", // Daily at midnight task: func() { log.Println("process bet cashbacks...") if err := betService.ProcessBetCashback(ctx); err != nil {