stupid JS, forgot bind this

pull/147/head
lyc8503 2025-10-29 02:49:14 +08:00
parent fb77f2592f
commit 52651d5a20
1 changed files with 1 additions and 1 deletions

View File

@ -250,7 +250,7 @@ export async function getStatus(
console.log(`${monitor.name} responded with ${response.status}`)
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) {
console.log(`${monitor.name} didn't pass response check: ${err}`)
}