diff options
author | ThibG <thib@sitedethib.com> | 2020-01-24 22:08:24 +0100 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2020-01-24 22:08:24 +0100 |
commit | 288f50942411add68d097985d46d701deba17c2f (patch) | |
tree | 393e0aee0ef2f1ca4183aaca97db212c7e658000 /app | |
parent | 0dfba0884e8885cf242010e0d9da6b328b3560a6 (diff) |
Fix type error in announcement reaction update event payload (#12946)
Diffstat (limited to 'app')
-rw-r--r-- | app/workers/publish_announcement_reaction_worker.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/workers/publish_announcement_reaction_worker.rb b/app/workers/publish_announcement_reaction_worker.rb index 6f3b6dc5b..e01deb64d 100644 --- a/app/workers/publish_announcement_reaction_worker.rb +++ b/app/workers/publish_announcement_reaction_worker.rb @@ -10,7 +10,7 @@ class PublishAnnouncementReactionWorker reaction, = announcement.announcement_reactions.where(name: name).group(:announcement_id, :name, :custom_emoji_id).select('name, custom_emoji_id, count(*) as count, false as me') reaction ||= announcement.announcement_reactions.new(name: name) - payload = InlineRenderer.render(reaction, nil, :reaction).tap { |h| h[:announcement_id] = announcement_id } + payload = InlineRenderer.render(reaction, nil, :reaction).tap { |h| h[:announcement_id] = announcement_id.to_s } payload = Oj.dump(event: :'announcement.reaction', payload: payload) Account.joins(:user).where('users.current_sign_in_at > ?', User::ACTIVE_DURATION.ago).find_each do |account| |