mirror of
https://github.com/Prowlarr/Prowlarr
synced 2025-12-27 10:58:34 +01:00
Update check returns error if build older than 180 days
This commit is contained in:
parent
25afadc9b2
commit
246fb9b855
1 changed files with 1 additions and 1 deletions
|
|
@ -93,7 +93,7 @@ public override HealthCheck Check()
|
|||
if (latestAvailable != null)
|
||||
{
|
||||
return new HealthCheck(GetType(),
|
||||
HealthCheckResult.Warning,
|
||||
BuildInfo.BuildDateTime.Before(DateTime.UtcNow.AddDays(-180)) ? HealthCheckResult.Error : HealthCheckResult.Warning,
|
||||
_localizationService.GetLocalizedString("UpdateAvailableHealthCheckMessage", new Dictionary<string, object>
|
||||
{
|
||||
{ "version", $"v{latestAvailable.Version}" }
|
||||
|
|
|
|||
Loading…
Reference in a new issue