diff --git a/app/models/challenge.rb b/app/models/challenge.rb index 68d55a582..19a3bf1bb 100644 --- a/app/models/challenge.rb +++ b/app/models/challenge.rb @@ -79,7 +79,7 @@ class Challenge < ApplicationRecord # end # end - def open_game user_id, shixun + def open_game shixun, user_id game = self.games.where(user_id: user_id).first if game.present? shixun.task_pass || game.status != 3 ? "/tasks/#{game.identifier}" : ""