feat:Deamons need over time after start

This commit is contained in:
BluJ
2023-04-27 11:41:18 -06:00
parent 1d4d076070
commit c1226cf2b4
5 changed files with 23 additions and 16 deletions

View File

@@ -15,7 +15,6 @@ export function healthCheck(o: {
}) {
new Promise(async () => {
let currentValue: TriggerInput = {
lastResult: null,
hadSuccess: false,
}
const getCurrentValue = () => currentValue
@@ -33,9 +32,9 @@ export function healthCheck(o: {
message,
})
currentValue.hadSuccess = true
currentValue.lastResult = "success"
currentValue.lastResult = "passing"
} catch (_) {
currentValue.lastResult = "failure"
currentValue.lastResult = "failing"
}
}
})