From 63100fb113743658111ef2916b1dff8d091711c4 Mon Sep 17 00:00:00 2001 From: joseph le Date: Thu, 12 Oct 2023 13:41:55 +0700 Subject: [PATCH] Update function check status for other system --- app/utils/sendStatusOtherSystem.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/utils/sendStatusOtherSystem.js b/app/utils/sendStatusOtherSystem.js index e028889..afd111b 100644 --- a/app/utils/sendStatusOtherSystem.js +++ b/app/utils/sendStatusOtherSystem.js @@ -940,6 +940,7 @@ const checkMultipleRequest = async () => { return data }; + const promises = requests.map(async (req, index) => { if (req.method === "POST") { await axios @@ -1085,7 +1086,7 @@ const checkMultipleRequest = async () => { let groupName = sortArray(report)[0] ?.group; let no = 0; - content += "||**" + groupName + "**|||\n"; + content += "||:high_voltage:**" + groupName + "**|||\n"; sortArray(report).map((u, index) => { no += 1; if (u.group === groupName) { @@ -1094,7 +1095,7 @@ const checkMultipleRequest = async () => { } else { no = 1; groupName = u.group; - content += "||**" + groupName + "**|||\n"; + content += "||:high_voltage:**" + groupName + "**|||\n"; content += "|" + no + "|" + u.name + "|**" + time + "**|" + u.status + "|\n"; }