fix: store session finish time

This commit is contained in:
Justin Lin committed 2026-10-09 23:49:12 +11:00
1 parent c5b91cf201
commit b5024631f7
1 file changed
+1
+1
View File
@@ -97,6 +97,7 @@ export async function finishSession(
session: HydratedDocument<ISession>
): Promise<void> {
session.status = 'finished'
session.finishedAt = new Date()
await session.save()
const userProfile = await UserProfile.findOne({ user: session.user })