Browse Source

change some bug

tags/v1
sylor_huang@126.com 6 years ago
parent
commit
7e99c0fc88
2 changed files with 1 additions and 2 deletions
  1. +0
    -1
      app/controllers/application_controller.rb
  2. +1
    -1
      app/controllers/repositories_controller.rb

+ 0
- 1
app/controllers/application_controller.rb View File

@@ -386,7 +386,6 @@ class ApplicationController < ActionController::Base
else
User.current
end
# User.current
end

## 默认输出json


+ 1
- 1
app/controllers/repositories_controller.rb View File

@@ -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)


Loading…
Cancel
Save