Updated report schemas. Removed yup.

This commit is contained in:
Mike Cao committed 2025-01-31 23:46:23 -08:00
1 parent edd72cd6e3
commit f3e733dea3
13 files changed
+37 -146

No files matched your search

+1 -1
View File
@@ -148,7 +148,7 @@ export async function getClientInfo(request: Request, payload: Record<string, an
const userAgent = payload?.userAgent || request.headers.get('user-agent');
const ip = payload?.ip || getIpAddress(request.headers);
const location = await getLocation(ip, request.headers);
const country = location?.country;
const country = payload?.userAgent || location?.country;
const subdivision1 = location?.subdivision1;
const subdivision2 = location?.subdivision2;
const city = location?.city;