Create function check status for other system

This commit is contained in:
joseph le 2023-10-11 16:41:16 +07:00
parent 9669eab569
commit 06bf78e68a
1 changed files with 3 additions and 2 deletions

View File

@ -1014,13 +1014,13 @@ const checkMultipleRequest = async () => {
});
await Promise.all(promises);
let listShipping = report.filter((i)=>i.group==="Shipping System").sort((a, b) => a.group.localeCompare(b.group))
report = report.filter((i)=>i.group!=="Shipping System").concat(listShipping).sort((a, b) => a.group.localeCompare(b.group))
let groupName = report?.sort((a, b) => a.group.localeCompare(b.group))[0]
?.group;
let no = 0;
content += "||**" + groupName + "**|||\n";
report
.sort((a, b) => a.group.localeCompare(b.group))
?.map((u, index) => {
no += 1;
if (u.group === groupName) {
@ -1034,6 +1034,7 @@ const checkMultipleRequest = async () => {
"|" + no + "|" + u.name + "|**" + time + "**|" + u.status + "|\n";
}
});
let params = {
type: "stream",
to: "Result test - auto.nswteam.net",