DEV: Fix another MessageBus::InvalidMessageTarget error.

Follow-up to c2f2b57a9b.
This commit is contained in:
Guo Xiang Tan 2020-09-15 14:25:10 +08:00
parent f7438fc64b
commit 49f53bdc50
No known key found for this signature in database
GPG Key ID: FBD110179AAC1F20

View File

@ -438,11 +438,13 @@ SQL
}
channels.each do |channel, ids|
MessageBus.publish(
channel,
message.as_json,
user_ids: ids
)
if ids.present?
MessageBus.publish(
channel,
message.as_json,
user_ids: ids
)
end
end
end