|
|
|
@ -11,7 +11,7 @@ class ApplyTeacherRoleJoinCourseNotifyJob < ApplicationJob
|
|
|
|
|
belong_container_type tiding_type extra created_at updated_at]
|
|
|
|
|
|
|
|
|
|
same_attrs = {
|
|
|
|
|
trigger_user_id: user.id, container_id: course.id, container_type: 'JoinCourse',
|
|
|
|
|
trigger_user_id: user.id, container_id: course.id, container_type: 'JoinCourse', status: 0,
|
|
|
|
|
belong_container_id: course.id, belong_container_type: 'Course', tiding_type: 'Apply', extra: role
|
|
|
|
|
}
|
|
|
|
|
Tiding.bulk_insert(*attrs) do |worker|
|
|
|
|
|