Fixed error log of issue #948 - recipient attribute isn't a hash.
This commit is contained in:
parent
48e3da57ee
commit
329ab853a2
1 changed files with 1 additions and 1 deletions
|
@ -12,7 +12,7 @@ class Sessions::Event::Broadcast < Sessions::Event::Base
|
|||
|
||||
# broadcast to recipient list
|
||||
if @payload['recipient']
|
||||
if @payload['recipient'].class != Hash && @payload['recipient'].class != ActiveSupport::HashWithIndifferentAccess
|
||||
if @payload['recipient'].class != Hash && @payload['recipient'].class != ActiveSupport::HashWithIndifferentAccess && @payload['recipient'].class != ActionController::Parameters
|
||||
log 'error', "recipient attribute isn't a hash (#{@payload['recipient'].class}) '#{@payload['recipient'].inspect}'"
|
||||
elsif !@payload['recipient'].key?('user_id')
|
||||
log 'error', "need recipient.user_id attribute '#{@payload['recipient'].inspect}'"
|
||||
|
|
Loading…
Reference in a new issue