rename method
This commit is contained in:
parent
ef7f793dc4
commit
f4ab8ea496
1 changed files with 2 additions and 2 deletions
|
@ -50,7 +50,7 @@ module Projects
|
||||||
@project.build_forked_project_link(forked_from_project_id: forked_from_project_id)
|
@project.build_forked_project_link(forked_from_project_id: forked_from_project_id)
|
||||||
end
|
end
|
||||||
|
|
||||||
process_import_data(import_data)
|
save_project_and_import_data(import_data)
|
||||||
|
|
||||||
start_import if @project.import?
|
start_import if @project.import?
|
||||||
|
|
||||||
|
@ -100,7 +100,7 @@ module Projects
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
def process_import_data(import_data)
|
def save_project_and_import_data(import_data)
|
||||||
Project.transaction do
|
Project.transaction do
|
||||||
@project.create_or_update_import_data(data: import_data[:data], credentials: import_data[:credentials]) if import_data
|
@project.create_or_update_import_data(data: import_data[:data], credentials: import_data[:credentials]) if import_data
|
||||||
@project.save
|
@project.save
|
||||||
|
|
Loading…
Reference in a new issue