debug(buffer): log more and disable deletion of cache
This commit is contained in:
@@ -134,6 +134,7 @@ export async function createSessionEnd(
|
|||||||
screenViews,
|
screenViews,
|
||||||
sessionDuration,
|
sessionDuration,
|
||||||
events,
|
events,
|
||||||
|
lastScreenView: lastScreenView ? lastScreenView : 'none',
|
||||||
});
|
});
|
||||||
|
|
||||||
return createEvent({
|
return createEvent({
|
||||||
|
|||||||
@@ -225,13 +225,13 @@ return "OK"
|
|||||||
|
|
||||||
addEventToSession();
|
addEventToSession();
|
||||||
} else if (event.name === 'session_end') {
|
} else if (event.name === 'session_end') {
|
||||||
// Delete last screen view
|
// // Delete last screen view
|
||||||
multi.del(
|
// multi.del(
|
||||||
this.getLastEventKey({
|
// this.getLastEventKey({
|
||||||
projectId: event.project_id,
|
// projectId: event.project_id,
|
||||||
profileId: event.profile_id,
|
// profileId: event.profile_id,
|
||||||
}),
|
// }),
|
||||||
);
|
// );
|
||||||
|
|
||||||
// Check if session has any events
|
// Check if session has any events
|
||||||
const eventCount = await redis.llen(sessionKey);
|
const eventCount = await redis.llen(sessionKey);
|
||||||
|
|||||||
Reference in New Issue
Block a user