From 3cefa60c310114487191e9585d65a3eeb5e35918 Mon Sep 17 00:00:00 2001 From: joseph le Date: Thu, 12 Oct 2023 08:26:29 +0700 Subject: [PATCH] Update function check status for other system --- app/utils/sendStatusOtherSystem.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/utils/sendStatusOtherSystem.js b/app/utils/sendStatusOtherSystem.js index 0fa5e37..9490e5b 100644 --- a/app/utils/sendStatusOtherSystem.js +++ b/app/utils/sendStatusOtherSystem.js @@ -1071,9 +1071,9 @@ const checkMultipleRequest = async () => { client.messages.send(params); // client.messages.send(params1); - allResponse += report - .sort((a, b) => a.group.localeCompare(b.group)) - .join("\n"); + report.map((r)=>{ + allResponse += JSON.stringify(r, null, 2) + }) fs.writeFileSync("/home/logs/logSystems.txt", allResponse); console.log(sortArray(report));