From c418e7513905226c6624dac224ee54e4aac0d320 Mon Sep 17 00:00:00 2001 From: Thomas Kaul <4159106+dtslvr@users.noreply.github.com> Date: Sun, 14 Jan 2024 10:36:32 +0100 Subject: [PATCH] Bugfix/fix currency in error log in exchange rate data service (#2868) * Fix currency * Update changelog --- CHANGELOG.md | 6 ++++++ .../exchange-rate-data/exchange-rate-data.service.ts | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 71db406ff..9bde0c960 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## Unreleased + +### Fixed + +- Fixed the currency in the error log of the exchange rate data service + ## 2.38.0 - 2024-01-13 ### Added diff --git a/apps/api/src/services/exchange-rate-data/exchange-rate-data.service.ts b/apps/api/src/services/exchange-rate-data/exchange-rate-data.service.ts index f7e6541c7..d180d8dd2 100644 --- a/apps/api/src/services/exchange-rate-data/exchange-rate-data.service.ts +++ b/apps/api/src/services/exchange-rate-data/exchange-rate-data.service.ts @@ -87,7 +87,7 @@ export class ExchangeRateDataService { exchangeRatesByCurrency[currency][dateString] = previousExchangeRate; Logger.error( - `No exchange rate has been found for ${DEFAULT_CURRENCY}${targetCurrency} at ${dateString}`, + `No exchange rate has been found for ${DEFAULT_CURRENCY}${currency} at ${dateString}`, 'ExchangeRateDataService' ); } else {