From 445b0db0148bc2cc3e64b6a1d19063e4c3ac981a Mon Sep 17 00:00:00 2001 From: joseph le Date: Tue, 17 Oct 2023 07:29:48 +0700 Subject: [PATCH] Update function check status for other system --- app/utils/sendStatusOtherSystem.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/utils/sendStatusOtherSystem.js b/app/utils/sendStatusOtherSystem.js index f0d499d..9d5fe60 100644 --- a/app/utils/sendStatusOtherSystem.js +++ b/app/utils/sendStatusOtherSystem.js @@ -1004,13 +1004,13 @@ const checkMultipleRequest = async () => { } } }else{ - console.log("Error:", error); + console.log("Error:", response); report.push({ group: req.group, name: req.name, status: ":red_circle:", code: response.status, - lengthOrData: "Error: " + error, + lengthOrData: "Error: " + response, }); } // .then((response) => { @@ -1078,13 +1078,13 @@ const checkMultipleRequest = async () => { } } }else{ - console.log("Error:", error); + console.log("Error:", response); report.push({ group: req.group, name: req.name, status: ":red_circle:", code: response.status, - lengthOrData: "Error: " + error, + lengthOrData: "Error: " + response, }); } }