This commit is contained in:
Carl-Gerhard Lindesvärd
2024-08-09 09:25:20 +02:00
committed by Carl-Gerhard Lindesvärd
parent b02cbb2946
commit 887b187b3d

View File

@@ -47,10 +47,11 @@ 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 = await getProfileIdCached({ // const profileId = await getProfileIdCached({
profileId: body.profileId, // profileId: body.profileId,
projectId, // projectId,
}); // });
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);