From 06f74401b95c7721c1b7c18149a335eb71a7289c Mon Sep 17 00:00:00 2001 From: "sylor_huang@126.com" Date: Thu, 12 Mar 2020 11:07:24 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9project=5Fscore?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/jobs/sync_forge_job.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/jobs/sync_forge_job.rb b/app/jobs/sync_forge_job.rb index 316d562..ab0cdb8 100644 --- a/app/jobs/sync_forge_job.rb +++ b/app/jobs/sync_forge_job.rb @@ -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