diff --git a/app/utils/sendStatusOtherSystem.js b/app/utils/sendStatusOtherSystem.js index 2584952..a42e03a 100644 --- a/app/utils/sendStatusOtherSystem.js +++ b/app/utils/sendStatusOtherSystem.js @@ -913,7 +913,7 @@ const checkMultipleRequest = async () => { headers: req.headers, }) .then((response) => { - allResponse += JSON.stringify(req.name + "\n" + response.data, null, 2); + allResponse += req.name + "\n" + response.data console.log(response.data); // Xử lý response ở đây // console.log("Response:", response.data.length); @@ -974,7 +974,7 @@ const checkMultipleRequest = async () => { headers: req.headers, }) .then((response) => { - allResponse += JSON.stringify(req.name + "\n" + response.data, null, 2); + allResponse += req.name + "\n" + response.data // Xử lý response ở đây // console.log("Response:", response.data.length); // console.log("Status:", response.status); @@ -996,7 +996,7 @@ const checkMultipleRequest = async () => { if (req.method === "SSH") { const stdout = await runExec(req.url); if (stdout !== "") { - allResponse += JSON.stringify(req.name + "\n" + stdout, null, 2); + allResponse += req.name + "\n" + stdout if (req.name === "Perthmint") { if (stdout.toString().split("true").length - 1 > 1) { report.push({ @@ -1018,7 +1018,7 @@ const checkMultipleRequest = async () => { } } else { console.log(stderr); - allResponse += JSON.stringify(req.name + "\n" + stderr, null, 2); + allResponse += req.name + "\n" + stderr report.push({ group: req.group, name: req.name,