dev_course
cxt 5 years ago
parent 8dc48633b1
commit 8828a04432

@ -4,7 +4,7 @@ class CourseDeleteStudentDeleteWorksJob < ApplicationJob
def perform(course_id, student_ids)
course = Course.find_by(id: course_id)
return if course.blank?
course = self.course
student_works = StudentWork.joins(:homework_common).where(user_id: student_ids, homework_commons: {course_id: course.id})
student_works.update_all(is_delete: 1)

Loading…
Cancel
Save