From a8ea8a459939c599bc02b764dfb12dbe24f17ee8 Mon Sep 17 00:00:00 2001 From: Thomas Kaul <4159106+dtslvr@users.noreply.github.com> Date: Sat, 23 Nov 2024 20:35:51 +0100 Subject: [PATCH] Feature/refactor types in EOD historical data service (#4063) * Refactor types --- .../eod-historical-data/eod-historical-data.service.ts | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/apps/api/src/services/data-provider/eod-historical-data/eod-historical-data.service.ts b/apps/api/src/services/data-provider/eod-historical-data/eod-historical-data.service.ts index 7329b821b..2037316a8 100644 --- a/apps/api/src/services/data-provider/eod-historical-data/eod-historical-data.service.ts +++ b/apps/api/src/services/data-provider/eod-historical-data/eod-historical-data.service.ts @@ -410,14 +410,12 @@ export class EodHistoricalDataService implements DataProviderInterface { return name; } - private async getSearchResult(aQuery: string): Promise< - (LookupItem & { + private async getSearchResult(aQuery: string) { + let searchResult: (LookupItem & { assetClass: AssetClass; assetSubClass: AssetSubClass; isin: string; - })[] - > { - let searchResult = []; + })[] = []; try { const abortController = new AbortController();