修改数据

This commit is contained in:
sylor_huang@126.com 2020-03-18 09:52:47 +08:00
parent f13db9e369
commit fd34a320b1
1 changed files with 1 additions and 1 deletions

View File

@ -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))