Browse Source

Fix wrong method used in PollExpirationNotifyWorker (#10265)

pull/4/head
Eugen Rochko 5 years ago
committed by GitHub
parent
commit
6841d8fc74
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      app/workers/poll_expiration_notify_worker.rb

+ 1
- 1
app/workers/poll_expiration_notify_worker.rb 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

Loading…
Cancel
Save