|
@ -21,12 +21,13 @@ export class CronService { |
|
|
|
|
|
|
|
|
@Cron(CronExpression.EVERY_4_HOURS) |
|
|
@Cron(CronExpression.EVERY_4_HOURS) |
|
|
public async runEveryFourHours() { |
|
|
public async runEveryFourHours() { |
|
|
await this.dataGatheringService.gather7Days(); |
|
|
// await this.dataGatheringService.gather7Days();
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
@Cron(CronExpression.EVERY_12_HOURS) |
|
|
@Cron(CronExpression.EVERY_12_HOURS) |
|
|
public async runEveryTwelveHours() { |
|
|
public async runEveryTwelveHours() { |
|
|
await this.exchangeRateDataService.loadCurrencies(); |
|
|
await this.exchangeRateDataService.loadCurrencies(); |
|
|
|
|
|
await this.dataGatheringService.gather7Days(); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
@Cron(CronExpression.EVERY_DAY_AT_5PM) |
|
|
@Cron(CronExpression.EVERY_DAY_AT_5PM) |
|
|