Commit 8eb67187 authored by James Lopez's avatar James Lopez

removed transaction stuff

parent 491a3127
......@@ -19,9 +19,7 @@ class Projects::ImportsController < Projects::ApplicationController
if @project.import_failed?
@project.import_retry
else
Project.transaction do
@project.import_start
end
@project.import_start
@project.add_import_job
end
end
......
......@@ -52,7 +52,7 @@ module Projects
save_project_and_import_data(import_data)
start_import if @project.import?
@project.import_start if @project.import?
after_create_actions if @project.persisted?
......@@ -94,12 +94,6 @@ module Projects
end
end
def start_import
Project.transaction do
@project.import_start
end
end
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
......
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