Skip to content

Commit

Permalink
[MC-26] [api] refactor: change function name fetch to load
Browse files Browse the repository at this point in the history
  • Loading branch information
maro5397 committed Sep 24, 2024
1 parent 86a50c3 commit 097bb6e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,12 @@ export class QuoteIndicatorRedisAdapter
nowDate: Date,
timezone: string,
): Promise<IndicatorQuoteData> {
const currentData: IndicatorQuoteData = await this.fetchQuoteData(interval, nowDate, indicatorDto, timezone);
const currentData: IndicatorQuoteData = await this.loadQuoteData(interval, nowDate, indicatorDto, timezone);
if (currentData) {
return currentData;
}
const previousDate: Date = this.datetimeMinusInterval(interval, nowDate);
return this.fetchQuoteData(interval, previousDate, indicatorDto, timezone);
return this.loadQuoteData(interval, previousDate, indicatorDto, timezone);
}

private createQuoteIndicatorKey(
Expand Down

0 comments on commit 097bb6e

Please sign in to comment.