Browse Source
Feature/reduce data gathering interval to every four hours (#1611)
* Reduce execution interval
* Update changelog
pull/1609/head^2
Thomas Kaul
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
3 additions and
2 deletions
-
CHANGELOG.md
-
apps/api/src/services/cron.service.ts
|
|
@ -11,6 +11,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 |
|
|
|
|
|
|
|
- Improved the date formatting in the tooltip of the dividend timeline grouped by month / year |
|
|
|
- Improved the date formatting in the tooltip of the investment timeline grouped by month / year |
|
|
|
- Reduced the execution interval of the data gathering to every 4 hours |
|
|
|
|
|
|
|
## 1.227.1 - 2023-01-14 |
|
|
|
|
|
|
|
|
|
@ -19,8 +19,8 @@ export class CronService { |
|
|
|
private readonly twitterBotService: TwitterBotService |
|
|
|
) {} |
|
|
|
|
|
|
|
@Cron(CronExpression.EVERY_HOUR) |
|
|
|
public async runEveryHour() { |
|
|
|
@Cron(CronExpression.EVERY_4_HOURS) |
|
|
|
public async runEveryFourHours() { |
|
|
|
await this.dataGatheringService.gather7Days(); |
|
|
|
} |
|
|
|
|
|
|
|