FIX query projects bug

This commit is contained in:
Jasder
2020-03-20 13:10:25 +08:00
parent 0a80b7c43f
commit b15f4e904b
2 changed files with 2 additions and 1 deletions

View File

@@ -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