Skip to content

Commit

Permalink
fix: change cron job schedule to run at 11:45 PM Sri Lanka time
Browse files Browse the repository at this point in the history
  • Loading branch information
lihini committed Jan 8, 2024
1 parent 60cf7d7 commit 20b5e5f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/points/points.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ export class PointsService {
@InjectConnection() private readonly mongoConnection: Connection,
) {}

@Cron(CronExpression.EVERY_DAY_AT_11PM)
// @Cron('*/10 * * * * *') // Every 5 seconds
@Cron('15 18 * * *') // 6:15 PM server time (UTC), 11:45 PM local time
async handleInspectPointReductionForTheDayCron() {
console.log('Running cron');

Expand Down

0 comments on commit 20b5e5f

Please sign in to comment.