wip: integrate filegraph into session

This commit is contained in:
Justin Lin committed 2025-04-24 22:05:10 +08:00
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,
})
}