Fix batch attachment deletion when using OpenStack Swift (#27554)

th-downstream
Claire 1 year ago committed by GitHub
parent a4e6fe36cb
commit 235a4cfdc8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -75,7 +75,7 @@ class AttachmentBatch
end
when :fog
logger.debug { "Deleting #{attachment.path(style)}" }
attachment.directory.files.new(key: attachment.path(style)).destroy
attachment.send(:directory).files.new(key: attachment.path(style)).destroy
when :azure
logger.debug { "Deleting #{attachment.path(style)}" }
attachment.destroy

Loading…
Cancel
Save