Closed xmonader closed 5 months ago
This because init-countries.js
gets countries from https://restcountries.com/v2/all and maps continent
value to region
and region
value to subregion
on our db. since the data served over this API have no continent
filed at all. all regions on our db are set to default value "unknown region".
The mapping in init-countries.js
should be corrected to:
region
-> region
subregion
-> subregion
Update: Fix merged
Verified on devnet
zos fetches the information from geoip service https://geoip.grid.tf
processor code https://github.com/threefoldtech/tfchain_graphql/blob/da00000dd87ceca477991fbab9c0934aebd1b3f5/scripts/init-countries.js#L63
so everything seems to be incheck, but graphql says otherwise
all of the records don't have the proper continent