forked from jasder/forgeplus
修改project_score
This commit is contained in:
parent
95ddc0af1c
commit
06f74401b9
|
@ -93,7 +93,7 @@ class SyncForgeJob < ApplicationJob
|
||||||
identifier: project["identifier"]
|
identifier: project["identifier"]
|
||||||
}
|
}
|
||||||
Repositories::CreateService.new(new_user, new_project, repository_params).call
|
Repositories::CreateService.new(new_user, new_project, repository_params).call
|
||||||
project_score = project_score["project_role"] if platform == "trustie" #trustie上需要
|
project_score = project_score["project_score"] if platform == "trustie" #trustie上需要
|
||||||
if project_score.present?
|
if project_score.present?
|
||||||
ProjectScore.create!(project_score&.except!(*score_to_delete).merge(project_id: new_project.id))
|
ProjectScore.create!(project_score&.except!(*score_to_delete).merge(project_id: new_project.id))
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue