Update function check status for other system
This commit is contained in:
parent
6ccfa9717c
commit
0f3748cee1
|
|
@ -955,6 +955,7 @@ const checkMultipleRequest = async () => {
|
||||||
};
|
};
|
||||||
|
|
||||||
const promises = requests.map(async (req, index) => {
|
const promises = requests.map(async (req, index) => {
|
||||||
|
try {
|
||||||
if (req.method === "POST") {
|
if (req.method === "POST") {
|
||||||
let response = await axios.post(req.url, req.data, {
|
let response = await axios.post(req.url, req.data, {
|
||||||
headers: req.headers,
|
headers: req.headers,
|
||||||
|
|
@ -1137,6 +1138,16 @@ const checkMultipleRequest = async () => {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
} catch (error) {
|
||||||
|
console.log("Error:", error);
|
||||||
|
report.push({
|
||||||
|
group: req.group,
|
||||||
|
name: req.name,
|
||||||
|
status: ":red_circle:",
|
||||||
|
code: "bad",
|
||||||
|
lengthOrData: "Error: " + error,
|
||||||
|
});
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
await Promise.all(promises);
|
await Promise.all(promises);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue