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)) } }); }