更改:创建项目默认不开启数据集

This commit is contained in:
yystopf 2024-05-07 10:07:45 +08:00
parent a3b31ee67a
commit ba228a7e93
1 changed files with 1 additions and 0 deletions

View File

@ -23,6 +23,7 @@ class ProjectUnit < ApplicationRecord
def self.init_types(project_id, project_type='common')
unit_types = project_type == 'sync_mirror' ? ProjectUnit::unit_types.except("pulls") : ProjectUnit::unit_types
unit_types = unit_types.except("dataset")
unit_types.each do |_, v|
self.create!(project_id: project_id, unit_type: v)
end