Extra check on incoming messages.
This commit is contained in:
parent
f66b2e8f26
commit
9baeb15927
@ -64,7 +64,7 @@ class Meteor.RedisPubSub
|
||||
"presentation_cursor_updated_message" # just because it's common. we handle it anyway
|
||||
]
|
||||
|
||||
if message.header? and message.payload?
|
||||
if message?.header? and message?.payload?
|
||||
unless message.header.name in ignoredEventTypes
|
||||
console.log "eventType=" + message.header.name #+ "\n"
|
||||
console.log jsonMsg
|
||||
|
Loading…
Reference in New Issue
Block a user