fix: notifications on session_start

This commit is contained in:
Carl-Gerhard Lindesvärd
2026-01-23 10:20:09 +01:00
parent e7c2834ea0
commit f8f470adf9
2 changed files with 10 additions and 19 deletions

View File

@@ -12,18 +12,6 @@ export const SESSION_TIMEOUT = 1000 * 60 * 30;
const getSessionEndJobId = (projectId: string, deviceId: string) =>
`sessionEnd:${projectId}:${deviceId}`;
export async function createSessionStart({
payload,
}: {
payload: IServiceCreateEventPayload;
}) {
return createEvent({
...payload,
name: 'session_start',
createdAt: new Date(getTime(payload.createdAt) - 100),
});
}
export async function createSessionEndJob({
payload,
}: {