bugfixing

This commit is contained in:
MuslemRahimi 2024-10-17 15:52:40 +02:00
parent 1dc6376c9c
commit 00f225c8cd

View File

@ -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 // Check if bpData is a number, not equal to zero, and jsonData properties are not null/undefined
if ( if (
jsonData?.bp != null && //jsonData?.bp != null &&
jsonData?.ap != null && //jsonData?.ap != null &&
jsonData?.lp != null && jsonData?.lp != null &&
jsonData?.t != null && jsonData?.t != null &&
["Q", "T"]?.includes(jsonData?.type) && ["Q", "T"]?.includes(jsonData?.type) &&
@ -211,7 +211,7 @@ fastify.register(async function (fastify) {
isSend = true; isSend = true;
setTimeout(() => { setTimeout(() => {
isSend = false; isSend = false;
}, 1000); }, 500);
} }
} catch (error) { } catch (error) {
console.error("Error parsing JSON:", error); console.error("Error parsing JSON:", error);