mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-02 19:30:48 +08:00
FIX query projects bug
This commit is contained in:
@@ -85,6 +85,7 @@ class Project < ApplicationRecord
|
||||
puts project.id
|
||||
next if project.owner.blank?
|
||||
if project.repository.blank?
|
||||
puts "########### start create repositoy #############"
|
||||
Repository.create!(project_id: project.id, identifier: Project.generate_identifier, user_id: project&.owner&.id)
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user