From 08a59c9b58c77196c8be17e9c9f0c2a61ff8e2bc Mon Sep 17 00:00:00 2001 From: Scott Twiname Date: Thu, 8 Sep 2022 16:51:42 +1200 Subject: [PATCH] Fix lint issue --- packages/node/src/indexer/fetch.service.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/node/src/indexer/fetch.service.ts b/packages/node/src/indexer/fetch.service.ts index 48ce1cd1a8..8620c64c35 100644 --- a/packages/node/src/indexer/fetch.service.ts +++ b/packages/node/src/indexer/fetch.service.ts @@ -133,7 +133,7 @@ export class FetchService implements OnApplicationShutdown { await this.dynamicDsService.getDynamicDatasources(); } - async getDictionaryQueryEntries(): Promise { + getDictionaryQueryEntries(): DictionaryQueryEntry[] { const queryEntries: DictionaryQueryEntry[] = []; const dataSources = this.project.dataSources.filter( @@ -155,7 +155,7 @@ export class FetchService implements OnApplicationShutdown { if (isCustomDs(ds)) { const processor = plugin.handlerProcessors[handler.kind]; if (processor.dictionaryQuery) { - const queryEntry = await processor.dictionaryQuery( + const queryEntry = processor.dictionaryQuery( (handler as SubstrateCustomHandler).filter, ds, ); @@ -216,8 +216,8 @@ export class FetchService implements OnApplicationShutdown { ); } - async updateDictionary(): Promise { - this.dictionaryQueryEntries = await this.getDictionaryQueryEntries(); + updateDictionary(): void { + this.dictionaryQueryEntries = this.getDictionaryQueryEntries(); this.useDictionary = !!this.dictionaryQueryEntries?.length && !!this.project.network.dictionary; @@ -245,7 +245,7 @@ export class FetchService implements OnApplicationShutdown { } await this.syncDynamicDatascourcesFromMeta(); - await this.updateDictionary(); + this.updateDictionary(); this.eventEmitter.emit(IndexerEvent.UsingDictionary, { value: Number(this.useDictionary), });