mirror of
https://github.com/hexastack/hexabot
synced 2025-06-26 18:27:28 +00:00
fix: minor
This commit is contained in:
parent
8ea87d3501
commit
cdfdd636de
@ -263,10 +263,7 @@ export class BotService {
|
||||
// Increment stats about popular blocks
|
||||
this.eventEmitter.emit('hook:stats:entry', BotStatsType.popular, next.name);
|
||||
this.logger.debug(
|
||||
'Proceeding to next block ',
|
||||
next.id,
|
||||
' for conversation ',
|
||||
convo.id,
|
||||
`Proceeding to next block ${next.id} for conversation ${convo.id}`,
|
||||
);
|
||||
|
||||
try {
|
||||
@ -437,7 +434,7 @@ export class BotService {
|
||||
const proxiedEvent = new Proxy(event, {
|
||||
get(target, prop, receiver) {
|
||||
if (prop === 'getText') {
|
||||
return () => result.coercedOption;
|
||||
return () => result.coercedOption + '';
|
||||
}
|
||||
return Reflect.get(target, prop, receiver);
|
||||
},
|
||||
@ -446,7 +443,7 @@ export class BotService {
|
||||
convo,
|
||||
proxiedEvent,
|
||||
);
|
||||
return { nextBlock: matchedBlock, fallback: true };
|
||||
return { nextBlock: matchedBlock, fallback: false };
|
||||
}
|
||||
|
||||
case FlowEscape.Action.NEW_CTX:
|
||||
|
Loading…
Reference in New Issue
Block a user