diff --git a/app/controllers/welcome_controller.rb b/app/controllers/welcome_controller.rb index d0dc51e0..ea19b903 100644 --- a/app/controllers/welcome_controller.rb +++ b/app/controllers/welcome_controller.rb @@ -485,7 +485,7 @@ class WelcomeController < ApplicationController def _shixun_to_local shixuns shixuns.each do |shixun| - if LocalShixun.where(shixun_id: shixun.id).blank? + if LocalShixun.where(shixun_id: shixun.id).blank? && !shixun.mirror_repositories.pluck(:type_name).includes?("VNC") local_shixun = LocalShixun.create!(name: shixun.name, description: shixun.description, user_id: User.current.id, status: 0, trainee: shixun.trainee, webssh: shixun.webssh, multi_webssh: shixun.multi_webssh,