Skip to content

Open Source Wealth Management Software. Angular + NestJS + Prisma + Nx + TypeScript 🤍

Feature/reduce data gathering interval to every four hours (#1611)

Thomas Kaul4865c45fd4a3
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 6686fa7f85..5b1dde13de 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -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
diff --git a/apps/api/src/services/cron.service.ts b/apps/api/src/services/cron.service.ts
index e3141ebe7f..8b036c35ec 100644
--- a/apps/api/src/services/cron.service.ts
+++ b/apps/api/src/services/cron.service.ts
@@ -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();
}