mirror of
https://github.com/linux-odyssey/linux-odyssey.git
synced 2026-11-06 03:20:13 +08:00
feat: add status, lastActivityAt column to session
This commit is contained in:
1 parent
bdb979e608
commit
2c866d2e83
4 files changed
+32
-1
No files matched your search
@@ -42,6 +42,12 @@ async function commandHandler(session, commandInput, additionalData) {
|
||||
session.progress = stage.next
|
||||
await session.save()
|
||||
|
||||
if (stage.next === 'END') {
|
||||
session.status = 'finished'
|
||||
session.finishedAt = new Date()
|
||||
await session.save()
|
||||
}
|
||||
|
||||
return {
|
||||
responses: stage.responses,
|
||||
hints: stage.hints,
|
||||
|
||||
Reference in new issue
Block a user