fix types and dockerfiles

This commit is contained in:
Carl-Gerhard Lindesvärd
2024-02-19 11:34:06 +01:00
parent 2f3c5ddf76
commit 95bc55b493
7 changed files with 16 additions and 9 deletions

View File

@@ -71,11 +71,12 @@ export async function createSessionEnd(
return createEvent({
...sessionStart,
properties: {
...sessionStart.properties,
_bounce: screenViews.length === 1,
},
name: 'session_end',
duration: sessionDuration,
path: lastScreenView?.path ?? sessionStart.path,
createdAt: toISOString(getTime(lastScreenView.createdAt) + 100),
createdAt: new Date(getTime(lastScreenView.createdAt) + 100),
});
}