mirror of
https://github.com/linux-odyssey/linux-odyssey.git
synced 2026-11-05 19:20:12 +08:00
wip: integrate filegraph into session
This commit is contained in:
1 parent
cdd22634e0
commit
2d95ca382f
13 files changed
+105
-42
No files matched your search
@@ -54,6 +54,7 @@ export const newCommand = asyncHandler(async (req: Request, res: Response) => {
|
||||
await c.save()
|
||||
if (event) {
|
||||
session.completedEvents = gameSession.completedEvents
|
||||
session.graph = gameSession.getGraph()
|
||||
|
||||
if (gameSession.isFinished()) {
|
||||
await finishSession(session)
|
||||
@@ -64,6 +65,7 @@ export const newCommand = asyncHandler(async (req: Request, res: Response) => {
|
||||
responses: gameSession.getResponses(),
|
||||
tasks: gameSession.getTasks(),
|
||||
status: session.status,
|
||||
graphUpdate: command.params,
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user