Changed getClientInfo method. Refactored send logic.

This commit is contained in:
Mike Cao committed 2024-04-05 01:48:59 -07:00
1 parent ada332f174
commit 698f0c6bbd
3 files changed
+9 -9

No files matched your search

+1 -1
View File
@@ -65,7 +65,7 @@ export async function findSession(req: NextApiRequestCollect): Promise<{
await checkUserBlock(website.userId);
const { userAgent, browser, os, ip, country, subdivision1, subdivision2, city, device } =
await getClientInfo(req, payload);
await getClientInfo(req);
const sessionId = uuid(websiteId, hostname, ip, userAgent);
const visitId = uuid(sessionId, visitSalt());