Fix wrong method used in PollExpirationNotifyWorker (#10265)

th-downstream
Eugen Rochko 6 years ago committed by GitHub
parent 73fb7bfa0f
commit bd094f1c78

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

Loading…
Cancel
Save