From dfdee1101681b29ad0a22f9595516a5fb8ea9827 Mon Sep 17 00:00:00 2001 From: filesite Date: Thu, 6 Jun 2024 06:59:19 +0800 Subject: [PATCH] bug fix: wrong status save when task failed --- monitor.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/monitor.mjs b/monitor.mjs index c17afb0..cef4819 100644 --- a/monitor.mjs +++ b/monitor.mjs @@ -133,7 +133,7 @@ class Monitor { let logData = { "timestamp": common.getTimestamp(), "url": task.url, - "status": task.status + "status": taskRes.task.status }; common.saveLog(logFile, JSON.stringify(logData) + `\n`); }