mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-16 09:45:57 +08:00
fix: migrate create unit
fix
This commit is contained in:
@@ -9,6 +9,7 @@ class Projects::MigrateService < ApplicationService
|
||||
def call
|
||||
@project = Project.new(project_params)
|
||||
if @project.save!
|
||||
ProjectUnit.init_types(@project.id)
|
||||
Project.update_mirror_projects_count!
|
||||
Repositories::MigrateService.new(user, @project, repository_params).call
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user