minor worker fix

This commit is contained in:
Carl-Gerhard Lindesvärd
2024-08-11 22:34:11 +02:00
parent 45a1e88216
commit 6934959d5b
2 changed files with 5 additions and 4 deletions

View File

@@ -459,6 +459,10 @@ export async function getLastScreenViewFromProfileId({
profileId: string;
projectId: string;
}) {
if (!profileId) {
return null;
}
const eventInBuffer = await eventBuffer.find(
(item) => item.event.profile_id === profileId
);