Pārlūkot izejas kodu

Fix wrong method used in PollExpirationNotifyWorker (#10265)

master
Eugen Rochko pirms 5 gadiem
committed by GitHub
vecāks
revīzija
6841d8fc74
Šim parakstam datu bāzē netika atrasta zināma atslēga GPG atslēgas ID: 4AEE18F83AFDEB23
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. +1
    -1
      app/workers/poll_expiration_notify_worker.rb

+ 1
- 1
app/workers/poll_expiration_notify_worker.rb Parādīt failu

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


Notiek ielāde…
Atcelt
Saglabāt