change bugs

This commit is contained in:
sylor_huang@126.com
2020-07-10 11:42:38 +08:00
parent 2b7dec7f56
commit aebaa7deda
2 changed files with 2 additions and 14 deletions

View File

@@ -22,7 +22,7 @@ class SyncForgeController < ApplicationController
project = Projects::CreateService.new(project_user, project_params).call
Rails.logger.info("=================new_project_id:#{project.id}========")
if project.present?
ProjectScore.create!( sync_params[:project_score].merge(project_id: project.id)) if sync_params[:project_score]
ProjectScore.create!( sync_params[:project_score].merge(project_id: project.id)) if sync_params[:project_score].present?
SyncRepositoryJob.perform_later(project.repository, sync_params[:repository]) if sync_params[:repository]
check_new_project(project, sync_params)
end
@@ -110,6 +110,7 @@ class SyncForgeController < ApplicationController
parent_id: project.id
}
SyncProjectsJob.perform_later(sync_projects_params)
Rails.logger.info("***6. end_to_sync_parises---------------")
end
end