Skip to content

Commit

Permalink
fix max duration to be 24 hours
Browse files Browse the repository at this point in the history
  • Loading branch information
dtkhiem committed Feb 12, 2025
1 parent e29396f commit e77e255
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/_common/monitoring/session.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { v4 as uuidv4 } from "uuid";

export const SESSION_TAG = "session";
export const SESSION_ID_TAG = "sessionId";
const SESSION_MAX_DURATION_MS = 60 * 1000; // 24 hours in milliseconds
const SESSION_MAX_DURATION_MS = 24 * 60 * 60 * 1000; // 24 hours in milliseconds

export function getSessionId(): string {
let session: { id: string; timestamp: number } | null = null;
Expand Down

0 comments on commit e77e255

Please sign in to comment.