fix(buffer): merge events in queue and get last screen view from buffer instead of cache

This commit is contained in:
Carl-Gerhard Lindesvärd
2025-02-18 23:08:38 +01:00
parent 3fd4382c76
commit 8e94ce5877
4 changed files with 50 additions and 71 deletions

View File

@@ -79,7 +79,7 @@ export async function createSessionEnd(
const [lastScreenView, eventsInDb] = await Promise.all([
eventBuffer.getLastScreenView({
projectId: payload.projectId,
profileId: payload.profileId || payload.deviceId,
sessionId: payload.sessionId,
}),
getCompleteSessionWithSessionStart({
projectId: payload.projectId,