fix: minor

This commit is contained in:
Mohamed Marrouchi 2025-06-12 16:26:27 +01:00
parent 8ea87d3501
commit cdfdd636de

View File

@ -263,10 +263,7 @@ export class BotService {
// Increment stats about popular blocks // Increment stats about popular blocks
this.eventEmitter.emit('hook:stats:entry', BotStatsType.popular, next.name); this.eventEmitter.emit('hook:stats:entry', BotStatsType.popular, next.name);
this.logger.debug( this.logger.debug(
'Proceeding to next block ', `Proceeding to next block ${next.id} for conversation ${convo.id}`,
next.id,
' for conversation ',
convo.id,
); );
try { try {
@ -437,7 +434,7 @@ export class BotService {
const proxiedEvent = new Proxy(event, { const proxiedEvent = new Proxy(event, {
get(target, prop, receiver) { get(target, prop, receiver) {
if (prop === 'getText') { if (prop === 'getText') {
return () => result.coercedOption; return () => result.coercedOption + '';
} }
return Reflect.get(target, prop, receiver); return Reflect.get(target, prop, receiver);
}, },
@ -446,7 +443,7 @@ export class BotService {
convo, convo,
proxiedEvent, proxiedEvent,
); );
return { nextBlock: matchedBlock, fallback: true }; return { nextBlock: matchedBlock, fallback: false };
} }
case FlowEscape.Action.NEW_CTX: case FlowEscape.Action.NEW_CTX: