change
This commit is contained in:
parent
e450188d47
commit
099c24c2d5
|
@ -122,6 +122,7 @@ class SyncProjectsJob < ApplicationJob
|
|||
SyncLog.sync_log("***【#{target_type}】. begin_to_create_target---------------")
|
||||
return SyncLog.sync_log("*** no target_jsons") if target_jsons.blank?
|
||||
target_jsons.each_with_index do |re,index|
|
||||
begin
|
||||
SyncLog.sync_log("***user_login:#{re[:user_login]}----target_type:#{target_type}-----#{index+1}")
|
||||
if re[:target_params].present?
|
||||
u_id = User.select(:id, :login).where(login: re[:user_login]).pluck(:id).first
|
||||
|
@ -141,9 +142,15 @@ class SyncProjectsJob < ApplicationJob
|
|||
end
|
||||
else
|
||||
SyncLog.sync_log("***111222. journal_create failed---------------")
|
||||
|
||||
end
|
||||
end
|
||||
end
|
||||
rescue => e
|
||||
SyncLog.sync_log("***111222. journal_create failed---#{e}------------")
|
||||
next
|
||||
end
|
||||
|
||||
end
|
||||
SyncLog.sync_log("***111222. end_to_create_journal---------------")
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue