|
|
@ -20,7 +20,7 @@ class GraduationTaskPublishNotifyJob < ApplicationJob
|
|
|
|
viewed: 0, tiding_type: 'GraduationTask'
|
|
|
|
viewed: 0, tiding_type: 'GraduationTask'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
Tiding.bulk_insert(*attrs) do |worker|
|
|
|
|
Tiding.bulk_insert(*attrs) do |worker|
|
|
|
|
course.course_members.pluck(:user_id).uniq.find_each do |user_id|
|
|
|
|
course.course_members.pluck(:user_id).uniq.each do |user_id|
|
|
|
|
worker.add same_attrs.merge(user_id: user_id)
|
|
|
|
worker.add same_attrs.merge(user_id: user_id)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|