diff --git a/app/services/shixuns_service.rb b/app/services/shixuns_service.rb index dd898cf6..69bbc431 100644 --- a/app/services/shixuns_service.rb +++ b/app/services/shixuns_service.rb @@ -130,7 +130,7 @@ class ShixunsService if manager position = d.position.nil? ? 1 : d.position game_identifier = Game.find_by_sql("SELECT g.identifier FROM games g JOIN challenges c on g.challenge_id = c.id - WHERE c.shixun_id = #{dis.id} AND c.position = #{position} AND g.user_id = #{current_user.id}").first.try(:identifier) + WHERE c.shixun_id = #{dis.id} AND c.position = #{position} AND g.user_id = #{d.user_id}").first.try(:identifier) "/tasks/#{game_identifier}" else ""