fix: minor fixes

This commit is contained in:
Mohamed Marrouchi 2025-06-12 15:35:10 +01:00
parent 0dfe80ac66
commit 8ea87d3501
2 changed files with 6 additions and 5 deletions

View File

@ -1,5 +1,5 @@
/* /*
* Copyright © 2024 Hexastack. All rights reserved. * Copyright © 2025 Hexastack. All rights reserved.
* *
* Licensed under the GNU Affero General Public License v3.0 (AGPLv3) with the following additional terms: * Licensed under the GNU Affero General Public License v3.0 (AGPLv3) with the following additional terms:
* 1. The name "Hexabot" is a trademark of Hexastack. You may not use this name in derivative works without express written permission. * 1. The name "Hexabot" is a trademark of Hexastack. You may not use this name in derivative works without express written permission.
@ -10,6 +10,7 @@ import { HttpModule } from '@nestjs/axios';
import { Global, Module } from '@nestjs/common'; import { Global, Module } from '@nestjs/common';
import { InjectDynamicProviders } from 'nestjs-dynamic-providers'; import { InjectDynamicProviders } from 'nestjs-dynamic-providers';
import { CmsModule } from '@/cms/cms.module';
import { NlpModule } from '@/nlp/nlp.module'; import { NlpModule } from '@/nlp/nlp.module';
import { HelperController } from './helper.controller'; import { HelperController } from './helper.controller';
@ -25,7 +26,7 @@ import { HelperService } from './helper.service';
'dist/.hexabot/custom/extensions/helpers/**/*.helper.js', 'dist/.hexabot/custom/extensions/helpers/**/*.helper.js',
) )
@Module({ @Module({
imports: [HttpModule, NlpModule], imports: [HttpModule, NlpModule, CmsModule],
controllers: [HelperController], controllers: [HelperController],
providers: [HelperService], providers: [HelperService],
exports: [HelperService], exports: [HelperService],

View File

@ -36,7 +36,7 @@ export default abstract class BaseFlowEscapeHelper<
* @param _blockMessage - The block message to check. * @param _blockMessage - The block message to check.
* @returns - Whether the helper can handle the flow escape for the given block message. * @returns - Whether the helper can handle the flow escape for the given block message.
*/ */
abstract canHandleFlowEscape<T extends BlockStub>(_blockMessage: T): boolean; abstract canHandleFlowEscape<T extends BlockStub>(block: T): boolean;
/** /**
* Adjudicates the flow escape event. * Adjudicates the flow escape event.
@ -46,7 +46,7 @@ export default abstract class BaseFlowEscapeHelper<
* @returns - A promise that resolves to a FlowEscape.AdjudicationResult. * @returns - A promise that resolves to a FlowEscape.AdjudicationResult.
*/ */
abstract adjudicate<T extends BlockStub>( abstract adjudicate<T extends BlockStub>(
_event: EventWrapper<any, any>, event: EventWrapper<any, any>,
_block: T, block: T,
): Promise<FlowEscape.AdjudicationResult>; ): Promise<FlowEscape.AdjudicationResult>;
} }