From e9e8eb2184b3dd22eb99bc6ddc16e3f78f8014e1 Mon Sep 17 00:00:00 2001 From: hexastack Date: Thu, 3 Apr 2025 12:30:41 +0100 Subject: [PATCH] fix: end conversation when a block have no matching outcomes --- api/src/chat/services/bot.service.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/api/src/chat/services/bot.service.ts b/api/src/chat/services/bot.service.ts index 6548bd98..46341b54 100644 --- a/api/src/chat/services/bot.service.ts +++ b/api/src/chat/services/bot.service.ts @@ -200,6 +200,7 @@ export class BotService { 'Block outcome did not match any of the next blocks', convo, ); + this.eventEmitter.emit('hook:conversation:end', convo, false); } } else { // Conversation continues : Go forward to next blocks