Skip to content

Commit

Permalink
Run daily winner at America/Los_Angeles timezone
Browse files Browse the repository at this point in the history
  • Loading branch information
ArtemKolodko committed Nov 21, 2024
1 parent 6940dec commit 8a9cc47
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/indexer/indexer.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -512,7 +512,9 @@ export class IndexerService {
.call() as bigint
}

@Cron(CronExpression.EVERY_DAY_AT_MIDNIGHT)
@Cron(CronExpression.EVERY_DAY_AT_MIDNIGHT, {
timeZone: 'America/Los_Angeles'
})
async callSetWinner() {
for(let i = 0; i < 3; i++) {
try {
Expand Down

0 comments on commit 8a9cc47

Please sign in to comment.