diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2019-03-14 14:04:07 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-03-14 14:04:07 +0100 |
commit | 6841d8fc7407ea0a665138b19c36eaacedda3630 (patch) | |
tree | 1f3b2dfe67e524b1b1ea9811007e0c025c8affd0 | |
parent | 51e154f5e87968d6bb115e053689767ab33e80cd (diff) |
Fix wrong method used in PollExpirationNotifyWorker (#10265)
-rw-r--r-- | app/workers/poll_expiration_notify_worker.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/workers/poll_expiration_notify_worker.rb b/app/workers/poll_expiration_notify_worker.rb index ae72298b8..e08f0c249 100644 --- a/app/workers/poll_expiration_notify_worker.rb +++ b/app/workers/poll_expiration_notify_worker.rb @@ -15,7 +15,7 @@ class PollExpirationNotifyWorker end # Notify local voters - poll.votes.includes(:account).map(&:account).filter(&:local?).each do |account| + poll.votes.includes(:account).map(&:account).select(&:local?).each do |account| NotifyService.new.call(account, poll) end rescue ActiveRecord::RecordNotFound |