From 00f225c8cd3ce856608ba4f6d413775c5dbb1708 Mon Sep 17 00:00:00 2001 From: MuslemRahimi Date: Thu, 17 Oct 2024 15:52:40 +0200 Subject: [PATCH] bugfixing --- fastify/app.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/fastify/app.js b/fastify/app.js index 3bb6891..a6d919b 100755 --- a/fastify/app.js +++ b/fastify/app.js @@ -191,8 +191,8 @@ fastify.register(async function (fastify) { // Check if bpData is a number, not equal to zero, and jsonData properties are not null/undefined if ( - jsonData?.bp != null && - jsonData?.ap != null && + //jsonData?.bp != null && + //jsonData?.ap != null && jsonData?.lp != null && jsonData?.t != null && ["Q", "T"]?.includes(jsonData?.type) && @@ -211,7 +211,7 @@ fastify.register(async function (fastify) { isSend = true; setTimeout(() => { isSend = false; - }, 1000); + }, 500); } } catch (error) { console.error("Error parsing JSON:", error);