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 8eb67187 authored by James Lopez's avatar James Lopez
Browse files

removed transaction stuff

parent 03e38b65b208
......@@ -19,9 +19,7 @@ def create
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 @@ def execute
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 @@ def after_create_actions
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