From 55e7f89fc02ad8ab38edadf62fe3e87f79baaae9 Mon Sep 17 00:00:00 2001 From: yassinedorbozgithub Date: Thu, 8 May 2025 09:31:20 +0100 Subject: [PATCH] fix: apply feedback --- api/src/chat/services/bot.service.ts | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/api/src/chat/services/bot.service.ts b/api/src/chat/services/bot.service.ts index bbcd1fb3..a5b9dbb3 100644 --- a/api/src/chat/services/bot.service.ts +++ b/api/src/chat/services/bot.service.ts @@ -309,7 +309,11 @@ export class BotService { if (next) { // Increment stats about popular blocks - this.eventEmitter.emit('hook:stats:entry', 'popular', next.name); + this.eventEmitter.emit( + 'hook:stats:entry', + BotStatsType.popular, + next.name, + ); // Go next! this.logger.debug('Respond to nested conversion! Go next ', next.id); try { @@ -390,7 +394,11 @@ export class BotService { */ async startConversation(event: EventWrapper, block: BlockFull) { // Increment popular stats - this.eventEmitter.emit('hook:stats:entry', 'popular', block.name); + this.eventEmitter.emit( + 'hook:stats:entry', + BotStatsType.popular, + block.name, + ); // Launching a new conversation const subscriber = event.getSender();