Merge pull request #6162 from adullact/6161_fix_graphql-validate-blob
Correction d'un test de l'API GraphQL (#6162)
This commit is contained in:
commit
4eadf48040
1 changed files with 2 additions and 0 deletions
|
@ -5,6 +5,8 @@ module Mutations
|
|||
def validate_blob(blob_id)
|
||||
begin
|
||||
blob = ActiveStorage::Blob.find_signed(blob_id)
|
||||
raise ActiveSupport::MessageVerifier::InvalidSignature if blob.nil?
|
||||
|
||||
# open downloads the file and checks its hash
|
||||
blob.open { |f| }
|
||||
true
|
||||
|
|
Loading…
Reference in a new issue