Update function check status for other system
This commit is contained in:
parent
93164fbf35
commit
63100fb113
|
|
@ -940,6 +940,7 @@ const checkMultipleRequest = async () => {
|
||||||
|
|
||||||
return data
|
return data
|
||||||
};
|
};
|
||||||
|
|
||||||
const promises = requests.map(async (req, index) => {
|
const promises = requests.map(async (req, index) => {
|
||||||
if (req.method === "POST") {
|
if (req.method === "POST") {
|
||||||
await axios
|
await axios
|
||||||
|
|
@ -1085,7 +1086,7 @@ const checkMultipleRequest = async () => {
|
||||||
let groupName = sortArray(report)[0]
|
let groupName = sortArray(report)[0]
|
||||||
?.group;
|
?.group;
|
||||||
let no = 0;
|
let no = 0;
|
||||||
content += "||**" + groupName + "**|||\n";
|
content += "||:high_voltage:**" + groupName + "**|||\n";
|
||||||
sortArray(report).map((u, index) => {
|
sortArray(report).map((u, index) => {
|
||||||
no += 1;
|
no += 1;
|
||||||
if (u.group === groupName) {
|
if (u.group === groupName) {
|
||||||
|
|
@ -1094,7 +1095,7 @@ const checkMultipleRequest = async () => {
|
||||||
} else {
|
} else {
|
||||||
no = 1;
|
no = 1;
|
||||||
groupName = u.group;
|
groupName = u.group;
|
||||||
content += "||**" + groupName + "**|||\n";
|
content += "||:high_voltage:**" + groupName + "**|||\n";
|
||||||
content +=
|
content +=
|
||||||
"|" + no + "|" + u.name + "|**" + time + "**|" + u.status + "|\n";
|
"|" + no + "|" + u.name + "|**" + time + "**|" + u.status + "|\n";
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue