Merge pull request #7683 from artoscinote/ma_SCI_10842

Touch asset after file rename [SCI-10842]
This commit is contained in:
Martin Artnik 2024-07-04 14:41:32 +02:00 committed by GitHub
commit ae1034e994
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -385,6 +385,10 @@ class Asset < ApplicationRecord
new_image_filename = "#{new_name}.png"
preview_image.blob.update!(filename: new_image_filename)
end
# rubocop:disable Rails/SkipsModelValidations
touch
# rubocop:enable Rails/SkipsModelValidations
end
end