From 7e99c0fc888c92542c9c26ae22154de1db9a2f06 Mon Sep 17 00:00:00 2001 From: "sylor_huang@126.com" Date: Thu, 2 Jul 2020 15:00:17 +0800 Subject: [PATCH] change some bug --- app/controllers/application_controller.rb | 1 - app/controllers/repositories_controller.rb | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) 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)