adjust blob proxy

This commit is contained in:
Pete Matsyburka
2024-02-19 17:07:37 +02:00
parent 4bbd5c3bcb
commit 6727d3be83
2 changed files with 14 additions and 5 deletions
@@ -10,7 +10,11 @@ module Api
def show
blob_uuid = ApplicationRecord.signed_id_verifier.verified(params[:signed_uuid])
return head :not_found unless blob_uuid
unless blob_uuid
Rollbar.error('Blob not found') if defined?(Rollbar)
return head :not_found
end
blob = ActiveStorage::Blob.find_by!(uuid: blob_uuid)