diff --git a/src/api/integrations/typebot/services/typebot.service.ts b/src/api/integrations/typebot/services/typebot.service.ts index 12a178b3..8424a307 100644 --- a/src/api/integrations/typebot/services/typebot.service.ts +++ b/src/api/integrations/typebot/services/typebot.service.ts @@ -1010,6 +1010,15 @@ export class TypebotService { id: session.id, }, }); + } else { + await prismaRepository.typebotSession.update({ + where: { + id: session.id, + }, + data: { + status: 'closed', + }, + }); } } }