Skip to content

Commit 84e3e41

Browse files
authored
Merge pull request #1173 from coopTilleuls/fix/change-api-city-query-param
fix: change api city query param
2 parents a6115ea + b790223 commit 84e3e41

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

pwa/interfaces/Gouv.ts

+1
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ export interface City {
2929
article: string;
3030
nom_commune: string;
3131
nom_commune_complet: string;
32+
nom_commune_complet_formatte: string;
3233
department: Departement | null;
3334
}
3435

pwa/utils/apiCity.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ const gouvCities = async (search: string) => {
2727

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

3333
const data = await response.json();

0 commit comments

Comments
 (0)