BigW Consortium Gitlab

Commit cacbecd0 by James Lopez

more changes based on MR feedback

parent f27d7b2c
......@@ -22,7 +22,7 @@ class Projects::ImportsController < Projects::ApplicationController
Project.transaction do
@project.import_start
end
@project.add_import_job if @project.persisted?
@project.add_import_job
end
end
......
......@@ -103,9 +103,8 @@ module Projects
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