修改后端的bug
This commit is contained in:
parent
0bf4d5e4be
commit
6deb1a9488
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue