diff --git a/app/controllers/competitions_controller.rb b/app/controllers/competitions_controller.rb index 028bab2d..24f02037 100644 --- a/app/controllers/competitions_controller.rb +++ b/app/controllers/competitions_controller.rb @@ -145,7 +145,7 @@ class CompetitionsController < ApplicationController section = stage.competition_stage_sections.reorder("start_time asc").first if section.present? && section.start_time.present? && section.start_time > Time.now User.where(:id => TeamMember.where(:competition_team_id => @competition.competition_teams.pluck(:id)).pluck(:user_id).uniq).each do |user| - name = @competition.name + "(#{stage.name})" + name = @competition.name + "#{@competition.sub_title}(#{stage.name})" begin if user.phone.present? status = Trustie::Sms.send(mobile: user.phone.to_s, code: '1', send_type:'competition_start', user_name:user.show_name, name:name, result:section.start_time.strftime('%Y-%m-%d %H:%M:%S'))