Fix wrong method used in PollExpirationNotifyWorker (#10265)

lolsob-rspec
Eugen Rochko 2019-03-14 14:04:07 +01:00 committed by GitHub
parent 73fb7bfa0f
commit bd094f1c78
1 changed files with 1 additions and 1 deletions

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