twick cron job interval for cashback

This commit is contained in:
Asher Samuel 2025-07-10 15:24:53 +03:00
parent fd55639c02
commit d5bfe98900

View File

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