fix profile id

This commit is contained in:
Carl-Gerhard Lindesvärd
2024-08-07 23:39:50 +02:00
committed by Carl-Gerhard Lindesvärd
parent adc8b90450
commit 7d703bcd80

View File

@@ -47,7 +47,7 @@ export async function incomingEvent(job: Job<EventsQueuePayloadIncomingEvent>) {
}; };
// this will get the profileId from the alias table if it exists // this will get the profileId from the alias table if it exists
const profileId = body.profileId ?? ''; const profileId = body.profileId ? String(body.profileId) : '';
const createdAt = new Date(body.timestamp); const createdAt = new Date(body.timestamp);
const url = getProperty('__path'); const url = getProperty('__path');
const { path, hash, query, origin } = parsePath(url); const { path, hash, query, origin } = parsePath(url);