From dab08f3ef5b1c2eb9c09a3860dce408bb9fd5ee1 Mon Sep 17 00:00:00 2001 From: Ivan Date: Mon, 4 Sep 2023 12:20:56 +0300 Subject: [PATCH] fix getting parameters --- server.js | 1 + 1 file changed, 1 insertion(+) diff --git a/server.js b/server.js index b951e04..67d81d5 100644 --- a/server.js +++ b/server.js @@ -1225,6 +1225,7 @@ async function getParameterByName(serial, fieldName) { data: JSON.stringify(requestPayload), }); // console.log(requestResponse.data); + await new Promise(resolve => setTimeout(resolve, 300)); const getResponse = await axios.get(`http://krbl.ru:8080/http/parameters/get?serial=${serial}`); // console.log(getResponse.data);