asdasd
All checks were successful
Deploy / deploy-staging (push) Successful in 5s
Deploy / deploy-production (push) Has been skipped

This commit is contained in:
2026-04-29 02:47:37 +02:00
parent 235630ee1e
commit 1ba8b550f6

View File

@@ -19,7 +19,7 @@ final class FxRatesService
public function latestStatus(): ?array public function latestStatus(): ?array
{ {
return $this->localizeFetch($this->repository->getLatestFetch($this->defaultBaseCurrency())); return $this->localizeFetch($this->repository->getLatestFetch(null));
} }
public function latestStatuses(): array public function latestStatuses(): array
@@ -40,13 +40,10 @@ final class FxRatesService
} }
if ($at === null || trim($at) === '') { if ($at === null || trim($at) === '') {
$latest = $this->repository->getLatestFetch($base);
if ($latest === null) {
$latest = $this->repository->getLatestFetch(null); $latest = $this->repository->getLatestFetch(null);
if ($latest === null) { if ($latest === null) {
return null; return null;
} }
}
$snapshot = $this->repository->getSnapshotByFetchId((int) $latest['id'], null); $snapshot = $this->repository->getSnapshotByFetchId((int) $latest['id'], null);
if ($snapshot === null) { if ($snapshot === null) {