stupid me
This commit is contained in:
parent
05652f1cfb
commit
1e6975fa13
|
@ -18,7 +18,7 @@ const notify = (token, groupId, action, item, data) => {
|
||||||
if (client.currentGroup == groupId) {
|
if (client.currentGroup == groupId) {
|
||||||
let userIdFromToken = jwt.decode(client.token, config.secret).login.id
|
let userIdFromToken = jwt.decode(client.token, config.secret).login.id
|
||||||
if (userIdCurrent == userIdFromToken) return;
|
if (userIdCurrent == userIdFromToken) return;
|
||||||
client.socket.send(payload)
|
client.socket.send(JSON.stringify(payload))
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue