diff --git a/app/Support/Http/Api/ExchangeRateConverter.php b/app/Support/Http/Api/ExchangeRateConverter.php index c55f464bb1..a3c71b993c 100644 --- a/app/Support/Http/Api/ExchangeRateConverter.php +++ b/app/Support/Http/Api/ExchangeRateConverter.php @@ -149,6 +149,9 @@ class ExchangeRateConverter private function getFromDB(int $from, int $to, string $date): ?string { + if($from === $to) { + return '1'; + } $key = sprintf('cer-%d-%d-%s', $from, $to, $date); // perhaps the rate has been cached during this particular run