Create function check status for other system

This commit is contained in:
joseph le 2023-10-11 15:49:44 +07:00
parent 1df5dad95c
commit c944e29c51
1 changed files with 1 additions and 2 deletions

View File

@ -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 !== "") {