add comment for future refactorisation

This commit is contained in:
Julien Fastré 2022-03-14 13:26:07 +01:00
parent a2f8f7ae43
commit e9cacbb74a

View File

@ -22,6 +22,7 @@ const fetchCountries = () => {
*/ */
const fetchCities = (country) => { const fetchCities = (country) => {
//console.log('<<< fetching cities for', country); //console.log('<<< fetching cities for', country);
// warning: do not use fetchResults (in apiMethods): we need only a **part** of the results in the db
const url = `/api/1.0/main/postal-code.json?item_per_page=1000&country=${country.id}`; const url = `/api/1.0/main/postal-code.json?item_per_page=1000&country=${country.id}`;
return fetch(url) return fetch(url)
.then(response => { .then(response => {