mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2026-05-16 16:31:45 +00:00
Fixed exception when github is not reachable
This commit is contained in:
parent
e576ded86b
commit
f13413a104
1 changed files with 1 additions and 1 deletions
|
|
@ -105,6 +105,6 @@ class UpdateAvailableFacade
|
||||||
return $this->updateCache->get(self::CACHE_KEY, function (ItemInterface $item) {
|
return $this->updateCache->get(self::CACHE_KEY, function (ItemInterface $item) {
|
||||||
$item->expiresAfter(self::CACHE_TTL);
|
$item->expiresAfter(self::CACHE_TTL);
|
||||||
return $this->updateChecker->getLatestVersion();
|
return $this->updateChecker->getLatestVersion();
|
||||||
});
|
}) ?? ['version' => '0.0.1', 'url' => 'update-checking-failed'];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue