修改后端的bug

This commit is contained in:
sylor_huang@126.com 2020-03-30 09:47:45 +08:00
parent 0bf4d5e4be
commit 6deb1a9488
1 changed files with 5 additions and 1 deletions

View File

@ -39,7 +39,7 @@ class Projects::CreateService < ApplicationService
def repository_params def repository_params
{ {
hidden: get_is_public, hidden: repo_is_public,
user_id: params[:user_id], user_id: params[:user_id],
identifier: params[:repository_name] identifier: params[:repository_name]
} }
@ -48,4 +48,8 @@ class Projects::CreateService < ApplicationService
def get_is_public def get_is_public
params[:private] || true params[:private] || true
end end
def repo_is_public
!get_is_public
end
end end