diff --git a/app/utils/sendStatusOtherSystem.js b/app/utils/sendStatusOtherSystem.js index cd7c9e9..6b1ad0d 100644 --- a/app/utils/sendStatusOtherSystem.js +++ b/app/utils/sendStatusOtherSystem.js @@ -915,7 +915,7 @@ const checkMultipleRequest = async () => { } if (req.method === "SSH") { - exec(req.url, (error, stdout, stderr) => { + await exec(req.url, (error, stdout, stderr) => { if (error) { allResponse+=JSON.stringify(req.name+"\n"+error) report.push({ @@ -925,7 +925,6 @@ const checkMultipleRequest = async () => { code: error.status, lengthOrData: "Error: " + error, }); - return; } if (stdout !== "") {