fix: duplicate response

This commit is contained in:
wancat committed 2024-06-28 16:17:28 +08:00
1 parent 57c080d88b
commit ed596c245d
3 files changed
+8 -6

No files matched your search

@@ -49,8 +49,6 @@ export const newCommand = asyncHandler(async (req: Request, res: Response) => {
c.stage = response.stage
await c.save()
session.responses.push(response.responses)
if ((session.status as string) === 'finished') {
await finishSession(session)
}