forked from jasder/forgeplus
修改数据
This commit is contained in:
parent
f13db9e369
commit
fd34a320b1
|
@ -142,7 +142,7 @@ class SyncForgeJob < ApplicationJob
|
||||||
if Project.exists?(identifier: project_identifier)
|
if Project.exists?(identifier: project_identifier)
|
||||||
failed_dic = "public/sync_failed_users.dic"
|
failed_dic = "public/sync_failed_users.dic"
|
||||||
File.open(failed_dic,"a") do |file|
|
File.open(failed_dic,"a") do |file|
|
||||||
file.puts "[\nTime---#{Time.now}\nproject_info---#{project}\n---]\n "
|
file.puts "[\nTime---#{Time.now}\nproject_info---#{project}\nerrors---exists the same project:#{project_identifier}]\n "
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
new_project = Project.new(project&.except!(*keys_to_delete).merge(user_id: new_user.id))
|
new_project = Project.new(project&.except!(*keys_to_delete).merge(user_id: new_user.id))
|
||||||
|
|
Loading…
Reference in New Issue