Skip to content

Commit

Permalink
Merge pull request #1173 from coopTilleuls/fix/change-api-city-query-…
Browse files Browse the repository at this point in the history
…param

fix: change api city query param
  • Loading branch information
davy-beauzil authored Mar 11, 2024
2 parents f5964a4 + 5c54bea commit ffbbac8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions pwa/interfaces/Gouv.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ export interface City {
article: string;
nom_commune: string;
nom_commune_complet: string;
nom_commune_complet_formatte: string;
department: Departement | null;
}

Expand Down
2 changes: 1 addition & 1 deletion pwa/utils/apiCity.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ const gouvCities = async (search: string) => {

try {
const response = await fetch(
`https://api-address-09a561047853.herokuapp.com/api/cities?nom_commune_postal=${search}`
`https://api-address-09a561047853.herokuapp.com/api/cities?nom_commune_complet_formatte=${search}`
);

const data = await response.json();
Expand Down

0 comments on commit ffbbac8

Please sign in to comment.