change some bug
This commit is contained in:
parent
dae013d386
commit
7e99c0fc88
|
@ -386,7 +386,6 @@ class ApplicationController < ActionController::Base
|
||||||
else
|
else
|
||||||
User.current
|
User.current
|
||||||
end
|
end
|
||||||
# User.current
|
|
||||||
end
|
end
|
||||||
|
|
||||||
## 默认输出json
|
## 默认输出json
|
||||||
|
|
|
@ -97,7 +97,7 @@ class RepositoriesController < ApplicationController
|
||||||
end
|
end
|
||||||
|
|
||||||
def sync_mirror
|
def sync_mirror
|
||||||
return render_error("正在镜像中..") if @repo.mirror.warning?
|
return render_error("正在镜像中..") if @repo.mirror.waiting?
|
||||||
|
|
||||||
@repo.sync_mirror!
|
@repo.sync_mirror!
|
||||||
SyncMirroredRepositoryJob.perform_later(@repo.id, current_user.id)
|
SyncMirroredRepositoryJob.perform_later(@repo.id, current_user.id)
|
||||||
|
|
Loading…
Reference in New Issue