[GraphQL] fix attachment upload
- `identify` will return `true` sometime
This commit is contained in:
parent
6ee2bec997
commit
00ef56db10
1 changed files with 1 additions and 0 deletions
|
@ -5,6 +5,7 @@ module Mutations
|
|||
begin
|
||||
blob = ActiveStorage::Blob.find_signed(blob_id)
|
||||
blob.identify
|
||||
nil
|
||||
rescue ActiveStorage::FileNotFoundError
|
||||
return { errors: ['Le fichier n’a pas été correctement téléversé sur le serveur de stockage'] }
|
||||
rescue ActiveSupport::MessageVerifier::InvalidSignature
|
||||
|
|
Loading…
Reference in a new issue