Browse Source

Reduce execution interval

pull/1611/head
Thomas 3 years ago
parent
commit
95bb506417
  1. 4
      apps/api/src/services/cron.service.ts

4
apps/api/src/services/cron.service.ts

@ -19,8 +19,8 @@ export class CronService {
private readonly twitterBotService: TwitterBotService private readonly twitterBotService: TwitterBotService
) {} ) {}
@Cron(CronExpression.EVERY_HOUR) @Cron(CronExpression.EVERY_4_HOURS)
public async runEveryHour() { public async runEveryFourHours() {
await this.dataGatheringService.gather7Days(); await this.dataGatheringService.gather7Days();
} }

Loading…
Cancel
Save