Update path.
parent
c05be856f3
commit
353a49f37a
|
@ -64,7 +64,7 @@ export async function getCountry(req, ip) {
|
||||||
|
|
||||||
// Database lookup
|
// Database lookup
|
||||||
const lookup = await maxmind.open(
|
const lookup = await maxmind.open(
|
||||||
path.resolve(serverRuntimeConfig.PROJECT_ROOT, 'geo/GeoLite2-Country.mmdb'),
|
path.resolve(serverRuntimeConfig.PROJECT_ROOT, 'public/geo/GeoLite2-Country.mmdb'),
|
||||||
);
|
);
|
||||||
|
|
||||||
const result = lookup.get(ip);
|
const result = lookup.get(ip);
|
||||||
|
|
Loading…
Reference in New Issue