Warnings are success with Warning so should be counted as success

This commit is contained in:
Jeavon
2017-06-26 15:48:44 +01:00
parent d7bd711d9a
commit 1f2e1e4e93

View File

@@ -40,7 +40,7 @@ namespace Umbraco.Web.HealthCheck
AllChecksSuccessful = true;
foreach (var result in _results)
{
var checkIsSuccess = result.Value.All(x => x.ResultType == StatusResultType.Success || x.ResultType == StatusResultType.Info);
var checkIsSuccess = result.Value.All(x => x.ResultType == StatusResultType.Success || x.ResultType == StatusResultType.Info || x.ResultType == StatusResultType.Warning);
if (checkIsSuccess == false)
{
AllChecksSuccessful = false;