Merge branch 'dev_trustie' into dev_chain

This commit is contained in:
sylor_huang@126.com 2020-07-10 16:51:51 +08:00
commit 06e914f398
1 changed files with 5 additions and 3 deletions

View File

@ -1,9 +1,9 @@
require 'uri'
require 'net/http'
class SyncProjectsJob < ApplicationJob
queue_as :default
require 'uri'
require 'net/http'
def perform(sync_params)
SyncLog.sync_log("==========begin to sync #{sync_params[:type]} to forge============")
begin
@ -41,6 +41,8 @@ class SyncProjectsJob < ApplicationJob
end
end
private
def update_new_project(re, project_id)
project = Project.find_by(id: project_id)
project.update(re[:target_params].compact!) if re[:target_params].present?