feat: send status to the frontend

This commit is contained in:
wancat committed 2024-02-29 10:54:53 +08:00
1 parent 622d64dd45
commit 039da53bbe
5 files changed
+8 -46

No files matched your search

+6
View File
@@ -79,6 +79,12 @@ export default class SessionHandler {
this.addNewTasks()
this.session.responses.push(stage.responses)
if (stage.id === 'END') {
this.session.status = 'finished'
}
return {
responses: stage.responses,
hints: stage.hints,