@ -12,7 +12,7 @@ class CompetitionTeam < ActiveRecord::Base
def teacher
teacher_id = self.teachers.first&.user_id
User.find_by(id: teacher_id)
User.where(id: teacher_id).first
end
def group_members