regions + city

This commit is contained in:
Nisarg 2021-10-10 23:08:28 -07:00
parent 2575cbfc11
commit 117d7c4400
6 changed files with 23 additions and 18 deletions

View file

@ -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,
});
}