|
|
@ -31,7 +31,7 @@ class ProjectPackages::RefuseApplyService < ApplicationService
|
|
|
|
Tiding.where(container_id: package.id, container_type: 'ProjectPackage',
|
|
|
|
Tiding.where(container_id: package.id, container_type: 'ProjectPackage',
|
|
|
|
tiding_type: 'Apply', status: 0).update_all(status: 1)
|
|
|
|
tiding_type: 'Apply', status: 0).update_all(status: 1)
|
|
|
|
|
|
|
|
|
|
|
|
Tiding.create!(user_id: package.creator_id, trigger_user_id: 1,
|
|
|
|
Tiding.create!(user_id: package.creator_id, trigger_user_id: 0,
|
|
|
|
container_id: package.id, container_type: 'ProjectPackage',
|
|
|
|
container_id: package.id, container_type: 'ProjectPackage',
|
|
|
|
tiding_type: 'System', status: 2, extra: apply.reason)
|
|
|
|
tiding_type: 'System', status: 2, extra: apply.reason)
|
|
|
|
end
|
|
|
|
end
|
|
|
|