From 246fb9b8553bec4e7727b83a2a77ad6a95f15c11 Mon Sep 17 00:00:00 2001 From: Bogdan Date: Thu, 24 Oct 2024 08:11:46 +0300 Subject: [PATCH] Update check returns error if build older than 180 days --- src/NzbDrone.Core/HealthCheck/Checks/UpdateCheck.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/NzbDrone.Core/HealthCheck/Checks/UpdateCheck.cs b/src/NzbDrone.Core/HealthCheck/Checks/UpdateCheck.cs index c7239b88a..684d7f60a 100644 --- a/src/NzbDrone.Core/HealthCheck/Checks/UpdateCheck.cs +++ b/src/NzbDrone.Core/HealthCheck/Checks/UpdateCheck.cs @@ -93,7 +93,7 @@ namespace NzbDrone.Core.HealthCheck.Checks 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 { { "version", $"v{latestAvailable.Version}" }