|
|
@ -113,7 +113,7 @@ class DuplicateCourseService < ApplicationService
|
|
|
|
)
|
|
|
|
)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
origin_question.exercise_shixun_challenges.find_each do |sc, index|
|
|
|
|
origin_question.exercise_shixun_challenges.each_with_index do |sc, index|
|
|
|
|
question.exercise_shixun_challenges.create!({position: index+1, challenge_id: sc.challenge_id,
|
|
|
|
question.exercise_shixun_challenges.create!({position: index+1, challenge_id: sc.challenge_id,
|
|
|
|
shixun_id: sc.shixun_id, question_score: sc.question_score})
|
|
|
|
shixun_id: sc.shixun_id, question_score: sc.question_score})
|
|
|
|
end
|
|
|
|
end
|
|
|
|