asdasd
This commit is contained in:
@@ -19,7 +19,7 @@ final class FxRatesService
|
||||
|
||||
public function latestStatus(): ?array
|
||||
{
|
||||
return $this->localizeFetch($this->repository->getLatestFetch($this->defaultBaseCurrency()));
|
||||
return $this->localizeFetch($this->repository->getLatestFetch(null));
|
||||
}
|
||||
|
||||
public function latestStatuses(): array
|
||||
@@ -40,13 +40,10 @@ final class FxRatesService
|
||||
}
|
||||
|
||||
if ($at === null || trim($at) === '') {
|
||||
$latest = $this->repository->getLatestFetch($base);
|
||||
if ($latest === null) {
|
||||
$latest = $this->repository->getLatestFetch(null);
|
||||
if ($latest === null) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
$snapshot = $this->repository->getSnapshotByFetchId((int) $latest['id'], null);
|
||||
if ($snapshot === null) {
|
||||
|
||||
Reference in New Issue
Block a user