mirror of
https://github.com/linux-odyssey/linux-odyssey.git
synced 2026-11-05 19:20:12 +08:00
fix: store session finish time
This commit is contained in:
1 parent
c5b91cf201
commit
b5024631f7
1 file changed
+1
@@ -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 })
|
||||
|
||||
Reference in new issue
Block a user