修改project_score

This commit is contained in:
sylor_huang@126.com 2020-03-12 11:07:24 +08:00
parent 95ddc0af1c
commit 06f74401b9
1 changed files with 1 additions and 1 deletions

View File

@ -93,7 +93,7 @@ class SyncForgeJob < ApplicationJob
identifier: project["identifier"]
}
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?
ProjectScore.create!(project_score&.except!(*score_to_delete).merge(project_id: new_project.id))
end