Skip to content
Extraits de code Groupes Projets
Non vérifiée Valider c49805ef rédigé par ThibG's avatar ThibG Validation de GitHub
Parcourir les fichiers

Fix poll ending notifications being created for each vote (#15071)

On a poll ending, notifications were created for each vote instead
of for each voter.
parent f1f0400a
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -15,7 +15,7 @@ class PollExpirationNotifyWorker
end
# Notify local voters
poll.votes.includes(:account).map(&:account).select(&:local?).each do |account|
poll.votes.includes(:account).group(:account_id).select(:account_id).map(&:account).select(&:local?).each do |account|
NotifyService.new.call(account, :poll, poll)
end
rescue ActiveRecord::RecordNotFound
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter