asdasd
This commit is contained in:
@@ -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,12 +40,9 @@ final class FxRatesService
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ($at === null || trim($at) === '') {
|
if ($at === null || trim($at) === '') {
|
||||||
$latest = $this->repository->getLatestFetch($base);
|
$latest = $this->repository->getLatestFetch(null);
|
||||||
if ($latest === null) {
|
if ($latest === null) {
|
||||||
$latest = $this->repository->getLatestFetch(null);
|
return null;
|
||||||
if ($latest === null) {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
$snapshot = $this->repository->getSnapshotByFetchId((int) $latest['id'], null);
|
$snapshot = $this->repository->getSnapshotByFetchId((int) $latest['id'], null);
|
||||||
|
|||||||
Reference in New Issue
Block a user