Merge pull request #8919 from tchak/graphql-stub-fake-files-meta
ETQ intégrateur API, je ne veux pas avoir d'erreurs lorsque j'interroge les métadonnées de certains fichiers
This commit is contained in:
commit
110a8aec97
2 changed files with 9 additions and 3 deletions
|
@ -240,7 +240,7 @@ class API::V2::StoredQuery
|
|||
...FileFragment
|
||||
}
|
||||
pdf {
|
||||
url
|
||||
...FileFragment
|
||||
}
|
||||
usager {
|
||||
email
|
||||
|
|
|
@ -143,7 +143,10 @@ module Types
|
|||
{
|
||||
filename: "dossier-#{object.id}.pdf",
|
||||
content_type: 'application/pdf',
|
||||
url: Rails.application.routes.url_helpers.api_v2_dossier_pdf_url(id: sgid)
|
||||
url: Rails.application.routes.url_helpers.api_v2_dossier_pdf_url(id: sgid),
|
||||
byte_size: 0,
|
||||
byte_size_big_int: '0',
|
||||
checksum: ''
|
||||
}
|
||||
end
|
||||
|
||||
|
@ -152,7 +155,10 @@ module Types
|
|||
{
|
||||
filename: "dossier-#{object.id}-features.json",
|
||||
content_type: 'application/json',
|
||||
url: Rails.application.routes.url_helpers.api_v2_dossier_geojson_url(id: sgid)
|
||||
url: Rails.application.routes.url_helpers.api_v2_dossier_geojson_url(id: sgid),
|
||||
byte_size: 0,
|
||||
byte_size_big_int: '0',
|
||||
checksum: ''
|
||||
}
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue