|
|
|
@ -14,5 +14,13 @@ class Ecs::ReachEvaluationsController < Ecs::BaseController
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
def create
|
|
|
|
|
relations = current_year.ec_graduation_requirements.joins(ec_graduation_subitems: :ec_course_support)
|
|
|
|
|
ec_course_ids = relations.pluck('ec_course_supports.ec_course_id').uniq
|
|
|
|
|
|
|
|
|
|
EcCourse.where(id: ec_course_ids).each do |ec_course|
|
|
|
|
|
Ecs::CalculateCourseEvaluationService.call(ec_course)
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
render_ok
|
|
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|