stupid JS, forgot bind this
parent
fb77f2592f
commit
52651d5a20
|
|
@ -250,7 +250,7 @@ export async function getStatus(
|
||||||
console.log(`${monitor.name} responded with ${response.status}`)
|
console.log(`${monitor.name} responded with ${response.status}`)
|
||||||
status.ping = Date.now() - startTime
|
status.ping = Date.now() - startTime
|
||||||
|
|
||||||
const err = await httpResponseBasicCheck(monitor, response.status, response.text)
|
const err = await httpResponseBasicCheck(monitor, response.status, response.text.bind(response))
|
||||||
if (err !== null) {
|
if (err !== null) {
|
||||||
console.log(`${monitor.name} didn't pass response check: ${err}`)
|
console.log(`${monitor.name} didn't pass response check: ${err}`)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue