Skip to content

Commit

Permalink
fix(mes-aides): remove space in siret
Browse files Browse the repository at this point in the history
  • Loading branch information
hlecuyer committed Oct 3, 2024
1 parent 4560db2 commit 627bb66
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ final AS (
data #>> '{fields,Partenaire Nom}' AS "partenaire_nom",
data #>> '{fields,Région Nom}' AS "region_nom",
ARRAY(SELECT * FROM JSONB_ARRAY_ELEMENTS_TEXT(data #> '{fields,Services}')) AS "services",
data #>> '{fields,SIRET}' AS "siret",
-- FIXME(hlecuyer) : Remove this when mes_aides has fixed the issue
REPLACE(data #>> '{fields,SIRET}', ' ', '') AS "siret",
data #>> '{fields,Téléphone}' AS "telephone",
data #>> '{fields,Type}' AS "type",
ARRAY(SELECT * FROM JSONB_ARRAY_ELEMENTS_TEXT(data #> '{fields,Types de véhicule}')) AS "types_de_vehicule",
Expand Down

0 comments on commit 627bb66

Please sign in to comment.