Browse Source

Change profile data gathering to the weekend

pull/437/head
Thomas 4 years ago
parent
commit
417002c651
  1. 6
      apps/api/src/services/cron.service.ts

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

@ -18,7 +18,11 @@ export class CronService {
@Cron(CronExpression.EVERY_12_HOURS) @Cron(CronExpression.EVERY_12_HOURS)
public async runEveryTwelveHours() { public async runEveryTwelveHours() {
await this.dataGatheringService.gatherProfileData();
await this.exchangeRateDataService.loadCurrencies(); await this.exchangeRateDataService.loadCurrencies();
} }
@Cron(CronExpression.EVERY_WEEKEND)
public async runEveryWeekend() {
await this.dataGatheringService.gatherProfileData();
}
} }

Loading…
Cancel
Save