From 46fc3c9b69092da9fa1f1e55a08f42e66d1cdc06 Mon Sep 17 00:00:00 2001 From: andkom Date: Tue, 27 Dec 2022 20:48:17 +0200 Subject: [PATCH] dont run aggregation automatically --- apps/aggregator/src/aggregator.ts | 4 +--- package.json | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/apps/aggregator/src/aggregator.ts b/apps/aggregator/src/aggregator.ts index 91a4ed1..b1d9da8 100644 --- a/apps/aggregator/src/aggregator.ts +++ b/apps/aggregator/src/aggregator.ts @@ -6,7 +6,6 @@ import cacheManager from '@type-cacheable/core'; import { useAdapter } from '@type-cacheable/lru-cache-adapter'; import { AggregatorModule } from './aggregator.module'; -import { AggregatorService } from './aggregator.service'; export default class Aggregator { private readonly logger = new Logger(Aggregator.name); @@ -28,8 +27,7 @@ export default class Aggregator { this.logger.log('Aggregator Microservice is listening...'); - // TODO: handle the very 1st aggregation // Run initial aggregation - await app.get(AggregatorService).scheduleAggregation(); + // await app.get(AggregatorService).scheduleAggregation(); } } diff --git a/package.json b/package.json index e8b5944..9e9ef5c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "dao-stats-api", - "version": "0.0.3", + "version": "0.0.4", "description": "DaoStats API backend", "author": "", "private": true,