Fix enum to string issue for HealthCheck StatusResultType

Signed-off-by: Bjarke Berg <mail@bergmania.dk>
This commit is contained in:
Bjarke Berg
2020-11-04 14:47:00 +01:00
parent 52550efc03
commit 09e5e68e77

View File

@@ -39,15 +39,19 @@
check.status.forEach(status => {
switch (status.resultType) {
case SUCCESS:
case 'Success':
totalSuccess = totalSuccess + 1;
break;
case WARNING:
case 'Warning':
totalWarning = totalWarning + 1;
break;
case ERROR:
case 'Error':
totalError = totalError + 1;
break;
case INFO:
case 'Info':
totalInfo = totalInfo + 1;
break;
}