This instance will be upgraded to Heptapod 0.31.0 (final) on 2022-05-24 at 14:00 UTC+2 (a few minutes of down time)

Commit cacbecd0 authored by James Lopez's avatar James Lopez
Browse files

more changes based on MR feedback

parent d73af27203dd
......@@ -22,7 +22,7 @@ def create
Project.transaction do
@project.import_start
end
@project.add_import_job if @project.persisted?
@project.add_import_job
end
end
......
......@@ -103,9 +103,8 @@ def start_import
def save_project_and_import_data(import_data)
Project.transaction do
@project.create_or_update_import_data(data: import_data[:data], credentials: import_data[:credentials]) if import_data
@project.save
if @project.persisted? && !@project.import?
if @project.save && !@project.import?
raise 'Failed to create repository' unless @project.create_repository
end
end
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment