add long and lat to events

This commit is contained in:
Carl-Gerhard Lindesvärd
2024-05-09 21:49:56 +02:00
parent 4936ba1d40
commit 0975a20e17
6 changed files with 40 additions and 16 deletions

View File

@@ -68,7 +68,8 @@ export async function incomingEvent(job: Job<EventsQueuePayloadIncomingEvent>) {
country: event?.country || geo.country || '',
city: event?.city || geo.city || '',
region: event?.region || geo.region || '',
continent: event?.continent || geo.continent || '',
longitude: geo.longitude,
latitude: geo.latitude,
os: event?.os ?? '',
osVersion: event?.osVersion ?? '',
browser: event?.browser ?? '',
@@ -150,7 +151,8 @@ export async function incomingEvent(job: Job<EventsQueuePayloadIncomingEvent>) {
country: geo.country,
city: geo.city,
region: geo.region,
continent: geo.continent,
longitude: geo.longitude,
latitude: geo.latitude,
os: uaInfo?.os ?? '',
osVersion: uaInfo?.osVersion ?? '',
browser: uaInfo?.browser ?? '',