update websitesession, add session duration

This commit is contained in:
Francis Cao
2024-08-09 17:27:06 -07:00
parent 3646039e54
commit 136dd6794e
6 changed files with 25 additions and 8 deletions

View File

@@ -62,7 +62,7 @@ export async function getSession(req: NextApiRequestCollect): Promise<SessionDat
}
// Find session
let session = await fetchSession(sessionId);
let session = await fetchSession(websiteId, sessionId);
// Create a session if not found
if (!session) {