Fix wrong method used in PollExpirationNotifyWorker (#10265)

This commit is contained in:
Eugen Rochko 2019-03-14 14:04:07 +01:00 committed by GitHub
parent 51e154f5e8
commit 6841d8fc74
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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