|
|
@ -667,7 +667,7 @@ class WelcomeController < ApplicationController
|
|
|
|
if local_mirrors.present?
|
|
|
|
if local_mirrors.present?
|
|
|
|
local_mirrors.each do |local_mirror|
|
|
|
|
local_mirrors.each do |local_mirror|
|
|
|
|
local_mirror_new = MirrorRepository.where(type_name: local_mirror.try(:type_name)).first
|
|
|
|
local_mirror_new = MirrorRepository.where(type_name: local_mirror.try(:type_name)).first
|
|
|
|
ShixunMirrorRepository.create!(:shixun_id => shixun.id, :mirror_repository_id => local_mirror_new.id)
|
|
|
|
ShixunMirrorRepository.create!(:shixun_id => shixun.id, :mirror_repository_id => local_mirror_new.try(:id))
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|