From 1df5dad95c4b77090d1b0177f7454c7ca73d02a5 Mon Sep 17 00:00:00 2001 From: joseph le Date: Wed, 11 Oct 2023 15:48:38 +0700 Subject: [PATCH] Create function check status for other system --- app/utils/sendStatusOtherSystem.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/utils/sendStatusOtherSystem.js b/app/utils/sendStatusOtherSystem.js index 17132d8..cd7c9e9 100644 --- a/app/utils/sendStatusOtherSystem.js +++ b/app/utils/sendStatusOtherSystem.js @@ -934,7 +934,7 @@ const checkMultipleRequest = async () => { console.log(typeof stdout) console.log("req.name ", req.name) console.log(req.name==="Perthmint") - console.log(stdout.toString().split("true")) + console.log((stdout.toString().split("true").length-1)>1) if(req.name==="Perthmint"){ if((stdout.toString().split("true").length-1)>1){ report.push({