dev_cs
cxt 5 years ago
parent 80a14f5d95
commit a1339c595b

@ -12,9 +12,8 @@ class CreateSubjectCourseStudentJob < ApplicationJob
course.subject.subject_appointments.each do |app|
next if course.students.where(user_id: app.user_id).any?
worker.add same_attrs.merge(user_id: app.user_id)
app.destroy
end
end
course.subject.subject_appointments.destroy_all
end
end

Loading…
Cancel
Save