Skip to content

Commit

Permalink
Fix lint issue
Browse files Browse the repository at this point in the history
  • Loading branch information
stwiname committed Sep 8, 2022
1 parent a6e61b2 commit 08a59c9
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions packages/node/src/indexer/fetch.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ export class FetchService implements OnApplicationShutdown {
await this.dynamicDsService.getDynamicDatasources();
}

async getDictionaryQueryEntries(): Promise<DictionaryQueryEntry[]> {
getDictionaryQueryEntries(): DictionaryQueryEntry[] {
const queryEntries: DictionaryQueryEntry[] = [];

const dataSources = this.project.dataSources.filter(
Expand All @@ -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,
);
Expand Down Expand Up @@ -216,8 +216,8 @@ export class FetchService implements OnApplicationShutdown {
);
}

async updateDictionary(): Promise<void> {
this.dictionaryQueryEntries = await this.getDictionaryQueryEntries();
updateDictionary(): void {
this.dictionaryQueryEntries = this.getDictionaryQueryEntries();
this.useDictionary =
!!this.dictionaryQueryEntries?.length &&
!!this.project.network.dictionary;
Expand Down Expand Up @@ -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),
});
Expand Down

0 comments on commit 08a59c9

Please sign in to comment.