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
|
// 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:
|
||||||
|
Loading…
Reference in New Issue
Block a user