stupid me
This commit is contained in:
@@ -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))
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user