5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2025-02-23 05:01:51 +00:00

fix: reportar errores #17889

This commit is contained in:
f 2024-12-18 11:37:38 -03:00
parent f57a0f1aa4
commit c58740e524
No known key found for this signature in database

View file

@ -45,7 +45,7 @@ module ActiveStorage
checksum = token[:checksum]
end
named_disk_service(token[:service_name]).upload token[:key], body, checksum: checksum
named_disk_service(site.name).upload token[:key], body, checksum: checksum
site.static_files.attach(blob)
else
@ -54,7 +54,9 @@ module ActiveStorage
else
head :not_found
end
rescue ActiveStorage::IntegrityError
rescue ActiveRecord::ActiveRecordError, ActiveStorage::Error => e
ExceptionNotifier.notify_exception(e, data: { token: })
head :unprocessable_entity
end