From 6e97b7d4e3f9828ca6e8d6cd287384c3abc3e587 Mon Sep 17 00:00:00 2001 From: medchedli Date: Fri, 13 Jun 2025 18:58:10 +0100 Subject: [PATCH] fix: rename the local variable NluPenaltyFactor to camelCase --- api/src/chat/services/block.service.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/api/src/chat/services/block.service.ts b/api/src/chat/services/block.service.ts index f1e86c4b..99a39fdd 100644 --- a/api/src/chat/services/block.service.ts +++ b/api/src/chat/services/block.service.ts @@ -117,15 +117,15 @@ export class BlockService extends BaseService< */ private async getPenaltyFactor(): Promise { const settings = await this.settingService.getSettings(); - const NluPenaltyFactor = + const nluPenaltyFactor = settings.chatbot_settings?.default_nlu_penalty_factor; - if (NluPenaltyFactor == null) { + if (nluPenaltyFactor == null) { this.logger.warn( `The NLU penalty factor has reverted to its default fallback value of: ${FALLBACK_DEFAULT_NLU_PENALTY_FACTOR}`, ); } - return NluPenaltyFactor ?? FALLBACK_DEFAULT_NLU_PENALTY_FACTOR; + return nluPenaltyFactor ?? FALLBACK_DEFAULT_NLU_PENALTY_FACTOR; } /**