dev_aliyun
cxt 5 years ago
parent f78e7107c4
commit 57b0c99579

@ -485,7 +485,7 @@ class WelcomeController < ApplicationController
def _shixun_to_local shixuns
shixuns.each do |shixun|
if LocalShixun.where(shixun_id: shixun.id).blank? && !shixun.mirror_repositories.pluck(:type_name).includes?("VNC")
if LocalShixun.where(shixun_id: shixun.id).blank? && !shixun.mirror_repositories.pluck(:type_name).include?("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,

Loading…
Cancel
Save