From b6f3fdbaadb193a1290909488130b129d326bdd3 Mon Sep 17 00:00:00 2001 From: joseph le Date: Thu, 12 Oct 2023 08:53:45 +0700 Subject: [PATCH] Update function check status for other system --- app/utils/sendStatusOtherSystem.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/app/utils/sendStatusOtherSystem.js b/app/utils/sendStatusOtherSystem.js index d15ac73..afcaea7 100644 --- a/app/utils/sendStatusOtherSystem.js +++ b/app/utils/sendStatusOtherSystem.js @@ -908,7 +908,12 @@ const checkMultipleRequest = async () => { if (error) { reject(error); } else { - resolve(stdout); + if (stdout !== "") { + resolve(stdout); + } else { + resolve(stderr); + } + } }); });