mirror of
https://github.com/ENSL/ensl.org.git
synced 2024-12-27 04:51:14 +00:00
Fixed profle query error when there are zero results
This commit is contained in:
parent
f5d8960647
commit
7635051f49
1 changed files with 1 additions and 1 deletions
|
@ -193,7 +193,7 @@ class Match < ActiveRecord::Base
|
||||||
end
|
end
|
||||||
|
|
||||||
def send_notifications
|
def send_notifications
|
||||||
Profile.all(include: :user, conditions: "notify_any_match = 1").find_each do |p|
|
Profile.includes(:user).where(notify_any_match: 1).find_each do |p|
|
||||||
Notifications.match p.user, self if p.user
|
Notifications.match p.user, self if p.user
|
||||||
end
|
end
|
||||||
contester2.team.teamers.active.each do |teamer|
|
contester2.team.teamers.active.each do |teamer|
|
||||||
|
|
Loading…
Reference in a new issue