Merge branch 'dev_trustie' into dev_chain
This commit is contained in:
commit
bfb437ae3e
|
@ -16,11 +16,12 @@ class SyncProjectsJob < ApplicationJob
|
|||
http.use_ssl = true
|
||||
response = http.send_request('GET', uri.path, sync_params.to_json, {'Content-Type' => 'application/json'})
|
||||
|
||||
SyncLog.sync_log("==========response_status::#{response.code}:::#{response.code == '200'}============")
|
||||
SyncLog.sync_log("==========response_body:#{response.body}============")
|
||||
SyncLog.sync_log("==========response_status::#{response.code}============")
|
||||
if response.code == '200'
|
||||
target_jsons = response.body
|
||||
if sync_params[:type] == "Project"
|
||||
SyncLog.sync_log("==========target_jsons: #{target_jsons}============")
|
||||
SyncLog.sync_log("==========eval_target_jsons: #{eval(target_jsons)}============")
|
||||
SyncLog.sync_log("==========targets_params: #{target_jsons[:targets_params]}============")
|
||||
update_new_project(target_jsons[:targets_params][0], sync_params[:new_project_id])
|
||||
else
|
||||
|
|
Loading…
Reference in New Issue