mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2026-05-10 15:12:12 +00:00
Fixed exception when github is not reachable
This commit is contained in:
parent
43b9441bb8
commit
bd686ed9b3
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) {
|
||||
$item->expiresAfter(self::CACHE_TTL);
|
||||
return $this->updateChecker->getLatestVersion();
|
||||
});
|
||||
}) ?? ['version' => '0.0.1', 'url' => 'update-checking-failed'];
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue