Commit b72d92b0 authored by Gabriel Mazetto's avatar Gabriel Mazetto

Fix old_disk_path when re-executing it

Fix old_disk_path when re-executing it after
a failed attachment migration
parent 6afc14d6
...@@ -16,7 +16,7 @@ module HashedStorage ...@@ -16,7 +16,7 @@ module HashedStorage
project = Project.without_deleted.find_by(id: project_id) project = Project.without_deleted.find_by(id: project_id)
break unless project break unless project
old_disk_path ||= project.disk_path old_disk_path ||= Storage::LegacyProject.new(project).disk_path
::Projects::HashedStorage::MigrationService.new(project, old_disk_path, logger: logger).execute ::Projects::HashedStorage::MigrationService.new(project, old_disk_path, logger: logger).execute
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