mirror of
https://github.com/BradNut/umami
synced 2025-09-08 17:40:29 +00:00
test 3 - move files
This commit is contained in:
parent
6f31e17e28
commit
16945c46ac
2 changed files with 2 additions and 2 deletions
|
|
@ -64,7 +64,7 @@ export async function getCountry(req, ip) {
|
|||
|
||||
// Database lookup
|
||||
if (!lookup) {
|
||||
lookup = await maxmind.open(path.resolve('./public/geo/GeoLite2-Country.mmdb'));
|
||||
lookup = await maxmind.open(path.resolve('./node_modules/.umami/GeoLite2-Country.mmdb'));
|
||||
}
|
||||
|
||||
const result = lookup.get(ip);
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ if (process.env.MAXMIND_LICENSE_KEY) {
|
|||
`?edition_id=GeoLite2-Country&license_key=${process.env.MAXMIND_LICENSE_KEY}&suffix=tar.gz`;
|
||||
}
|
||||
|
||||
const dest = path.resolve(__dirname, '../public/geo');
|
||||
const dest = path.resolve(__dirname, '../node_modules/.umami');
|
||||
|
||||
if (!fs.existsSync(dest)) {
|
||||
fs.mkdirSync(dest);
|
||||
|
|
|
|||
Loading…
Reference in a new issue