|
@ -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(); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|