不管镜像同步选择新旧,都直接发布

dev_library
daiao 6 years ago
parent 0bd28514e9
commit 1f4700f947

@ -358,7 +358,7 @@ class ManagementsController < ApplicationController
# 用户操作的的行为需要记录 user_id 中间层操作的行为user_id = -1 # 用户操作的的行为需要记录 user_id 中间层操作的行为user_id = -1
MirrorOperationRecord.create!(:mirror_repository_id => mirror.id, :mirror_id => change_id, :mirror_name => mirror.name, :status => 1, :user_id => User.current.id, :old_tag => old_id, :new_tag => change_id) MirrorOperationRecord.create!(:mirror_repository_id => mirror.id, :mirror_id => change_id, :mirror_name => mirror.name, :status => 1, :user_id => User.current.id, :old_tag => old_id, :new_tag => change_id)
else else
mirror.update_attribute(:status, 0) mirror.update_attribute(:status, 1)
end end
respond_to do |format| respond_to do |format|
format.js{ redirect_to mirror_repository_managements_path(:reaction => "choose_update_mirror")} format.js{ redirect_to mirror_repository_managements_path(:reaction => "choose_update_mirror")}

Loading…
Cancel
Save