From 92aec87b3de3c8c4c4da0342b5c9ad04d1da4927 Mon Sep 17 00:00:00 2001 From: Keaton Sentak Date: Mon, 23 Sep 2024 12:59:12 -0400 Subject: [PATCH] return error msg only if invalid params are sent to mf --- server/src/messageHandler.mjs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server/src/messageHandler.mjs b/server/src/messageHandler.mjs index bac9323..aafaeb6 100644 --- a/server/src/messageHandler.mjs +++ b/server/src/messageHandler.mjs @@ -168,7 +168,8 @@ async function handleMessage(message, userId, ws) { // No delay ws.send(responseMessage); logger.info(`Sent "invalid params" message: ${responseMessage}`); - updateCallWithResponse(oMsg.method, oResponseMessage.error, "error", userId) + updateCallWithResponse(oMsg.method, oResponseMessage.error, "error", userId); + return; } // Fire pre trigger if there is one for this method