mirror of
https://github.com/umami-software/umami.git
synced 2026-02-18 11:35:37 +01:00
regions + city
This commit is contained in:
parent
2575cbfc11
commit
117d7c4400
6 changed files with 23 additions and 18 deletions
|
|
@ -23,7 +23,10 @@ export async function getSession(req) {
|
|||
throw new Error(`Invalid website: ${website_uuid}`);
|
||||
}
|
||||
|
||||
const { userAgent, browser, os, ip, country, device } = await getClientInfo(req, payload);
|
||||
const { userAgent, browser, os, ip, country, device, region, city } = await getClientInfo(
|
||||
req,
|
||||
payload,
|
||||
);
|
||||
|
||||
const website = await getWebsiteByUuid(website_uuid);
|
||||
|
||||
|
|
@ -46,6 +49,8 @@ export async function getSession(req) {
|
|||
language,
|
||||
country,
|
||||
device,
|
||||
region,
|
||||
city,
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue