From 247e69ce77e504de50fdb9e4762ca449fd37e7da Mon Sep 17 00:00:00 2001 From: Keaton Sentak <54916859+ksentak@users.noreply.github.com> Date: Wed, 25 Sep 2024 10:56:24 -0400 Subject: [PATCH] return error msg only if invalid params are sent to mf (#160) --- 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