fix(buffer): merge events in queue and get last screen view from buffer instead of cache
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user