feat(backend): removed data check in agent message
This commit is contained in:
parent
cb9d713a1f
commit
1fc2a85f20
1 changed files with 1 additions and 1 deletions
|
|
@ -337,7 +337,7 @@ module.exports = {
|
|||
} else {
|
||||
debug && console.log(`received event:${eventName}, from:${socket.identity}, sending message to session of room:${socket.roomId}`);
|
||||
// TODO: new message structure: {meta: {tabId: string::id}, data: xxx -> args[0]}
|
||||
if (args[0].meta === undefined && args[0].data === undefined) {
|
||||
if (args[0].meta === undefined) {
|
||||
debug && console.log(`received event:${eventName}, from:${socket.identity}, but message structure is wrong, stopping onAny.`);
|
||||
return
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue