diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index 994c6357c..42f8101e1 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -386,7 +386,6 @@ class ApplicationController < ActionController::Base else User.current end - # User.current end ## 默认输出json diff --git a/app/controllers/repositories_controller.rb b/app/controllers/repositories_controller.rb index 59699c27b..65c2f404c 100644 --- a/app/controllers/repositories_controller.rb +++ b/app/controllers/repositories_controller.rb @@ -97,7 +97,7 @@ class RepositoriesController < ApplicationController end def sync_mirror - return render_error("正在镜像中..") if @repo.mirror.warning? + return render_error("正在镜像中..") if @repo.mirror.waiting? @repo.sync_mirror! SyncMirroredRepositoryJob.perform_later(@repo.id, current_user.id)