Merge pull request #9523 from demarches-simplifiees/destroy_blob_not_found_in_migrations
Lors de la migration des pjs, détruit les blobs qui n'existent pas dans l'espace de stockage
This commit is contained in:
commit
34dcf4ae9f
1 changed files with 1 additions and 0 deletions
|
@ -24,6 +24,7 @@ class PjsMigrationJob < ApplicationJob
|
|||
client.delete_object(container, old_key)
|
||||
end
|
||||
rescue Fog::OpenStack::Storage::NotFound
|
||||
blob.attachments.destroy_all
|
||||
end
|
||||
|
||||
def already_moved?(blob)
|
||||
|
|
Loading…
Reference in a new issue