fix: migrate create unit

fix
This commit is contained in:
vilet.yy 2021-03-19 17:37:25 +08:00
parent db2ba95e24
commit 553a584121
1 changed files with 1 additions and 0 deletions

View File

@ -9,6 +9,7 @@ class Projects::MigrateService < ApplicationService
def call def call
@project = Project.new(project_params) @project = Project.new(project_params)
if @project.save! if @project.save!
ProjectUnit.init_types(@project.id)
Project.update_mirror_projects_count! Project.update_mirror_projects_count!
Repositories::MigrateService.new(user, @project, repository_params).call Repositories::MigrateService.new(user, @project, repository_params).call
else else