From 1e6975fa1320e616c1052098ed32b8fd80c5f445 Mon Sep 17 00:00:00 2001 From: leca Date: Wed, 13 Nov 2024 20:07:59 +0300 Subject: [PATCH] stupid me --- src/utils/notify.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/notify.js b/src/utils/notify.js index f6621c3..665492c 100644 --- a/src/utils/notify.js +++ b/src/utils/notify.js @@ -18,7 +18,7 @@ const notify = (token, groupId, action, item, data) => { if (client.currentGroup == groupId) { let userIdFromToken = jwt.decode(client.token, config.secret).login.id if (userIdCurrent == userIdFromToken) return; - client.socket.send(payload) + client.socket.send(JSON.stringify(payload)) } }); }