diff --git a/app/controllers/shixuns_controller.rb b/app/controllers/shixuns_controller.rb index 23537d480..84ceacd26 100644 --- a/app/controllers/shixuns_controller.rb +++ b/app/controllers/shixuns_controller.rb @@ -407,7 +407,7 @@ class ShixunsController < ApplicationController service_update_params&.map do |service| smr = @shixun.shixun_service_configs.find_by(mirror_repository_id: service[:mirror_repository_id]) logger.info("########smr: #{smr}") - smr.update_attributes(service) + smr.update_attributes(service) if smr.present? end # 添加第二仓库(管理员权限) if params[:is_secret_repository]