Skip to content

Commit

Permalink
dont run aggregation automatically
Browse files Browse the repository at this point in the history
  • Loading branch information
andkom committed Dec 27, 2022
1 parent 5dcbeaa commit 46fc3c9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions apps/aggregator/src/aggregator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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();
}
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "dao-stats-api",
"version": "0.0.3",
"version": "0.0.4",
"description": "DaoStats API backend",
"author": "",
"private": true,
Expand Down

0 comments on commit 46fc3c9

Please sign in to comment.