diff --git a/fastify/app.js b/fastify/app.js index 0f610c9..2f32091 100755 --- a/fastify/app.js +++ b/fastify/app.js @@ -282,7 +282,7 @@ try { jsonData?.ap != null && jsonData?.bp != null && jsonData?.t != null && - ["Q", "T"].includes(jsonData?.type) && + ["Q","T"]?.includes(jsonData?.type) && connection.socket.readyState === WebSocket.OPEN ) { const avgPrice = (