mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-07-08 14:10:50 -07:00
Slight adjustments to #189
This commit is contained in:
parent
df3dc4ac04
commit
21a3830101
5 changed files with 8 additions and 9 deletions
|
@ -61,12 +61,9 @@ namespace PlexRequests.UI.Modules
|
|||
var checker = new StatusChecker();
|
||||
var release = Cache.GetOrSet(CacheKeys.LastestProductVersion, () => checker.GetStatus(), 30);
|
||||
|
||||
if (release.UpdateAvailable)
|
||||
{
|
||||
return Response.AsJson(new JsonUpdateAvailableModel { UpdateAvailable = true});
|
||||
}
|
||||
|
||||
return Response.AsJson(new JsonUpdateAvailableModel { UpdateAvailable = false });
|
||||
return Response.AsJson(release.UpdateAvailable
|
||||
? new JsonUpdateAvailableModel { UpdateAvailable = true}
|
||||
: new JsonUpdateAvailableModel { UpdateAvailable = false });
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue