Fix wrong method used in PollExpirationNotifyWorker (#10265)
This commit is contained in:
		
							parent
							
								
									51e154f5e8
								
							
						
					
					
						commit
						6841d8fc74
					
				@ -15,7 +15,7 @@ class PollExpirationNotifyWorker
 | 
				
			|||||||
    end
 | 
					    end
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    # Notify local voters
 | 
					    # 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)
 | 
					      NotifyService.new.call(account, poll)
 | 
				
			||||||
    end
 | 
					    end
 | 
				
			||||||
  rescue ActiveRecord::RecordNotFound
 | 
					  rescue ActiveRecord::RecordNotFound
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user