feature(api): override user-agent information

This commit is contained in:
Carl-Gerhard Lindesvärd
2024-11-19 11:13:24 +01:00
parent d36db071ec
commit 60525f8905
4 changed files with 15 additions and 12 deletions

View File

@@ -19,7 +19,7 @@ export async function updateProfile(
const projectId = request.projectId;
const ip = getClientIp(request)!;
const ua = request.headers['user-agent']!;
const uaInfo = parseUserAgent(ua);
const uaInfo = parseUserAgent(ua, properties);
const geo = await parseIp(ip);
await upsertProfile({