mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2026-05-18 17:31:35 +00:00
Fehlerbehandlung für Update-Checker verbessern.
This commit is contained in:
parent
563d39ff2d
commit
ad3fd27d10
1 changed files with 4 additions and 1 deletions
|
|
@ -104,7 +104,10 @@ 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.0',
|
||||||
|
'url' => 'no-release-found'
|
||||||
|
];
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue