debug(buffer): log more and disable deletion of cache

This commit is contained in:
Carl-Gerhard Lindesvärd
2025-02-18 21:17:02 +01:00
parent 8c640bcb7f
commit 3fd4382c76
2 changed files with 8 additions and 7 deletions

View File

@@ -134,6 +134,7 @@ export async function createSessionEnd(
screenViews,
sessionDuration,
events,
lastScreenView: lastScreenView ? lastScreenView : 'none',
});
return createEvent({

View File

@@ -225,13 +225,13 @@ return "OK"
addEventToSession();
} else if (event.name === 'session_end') {
// Delete last screen view
multi.del(
this.getLastEventKey({
projectId: event.project_id,
profileId: event.profile_id,
}),
);
// // Delete last screen view
// multi.del(
// this.getLastEventKey({
// projectId: event.project_id,
// profileId: event.profile_id,
// }),
// );
// Check if session has any events
const eventCount = await redis.llen(sessionKey);