From fc5e53acb2d16124e79753caf384191ed9a71f2a Mon Sep 17 00:00:00 2001 From: Mohamed Marrouchi Date: Wed, 2 Oct 2024 06:24:49 +0100 Subject: [PATCH] feat: import http module in channels module --- api/src/channel/channel.module.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/api/src/channel/channel.module.ts b/api/src/channel/channel.module.ts index 90ba3db..dc4c039 100644 --- a/api/src/channel/channel.module.ts +++ b/api/src/channel/channel.module.ts @@ -6,6 +6,7 @@ * 2. All derivative works must include clear attribution to the original creator and software, Hexastack and Hexabot, in a prominent location (e.g., in the software's "About" section, documentation, and README file). */ +import { HttpModule } from '@nestjs/axios'; import { MiddlewareConsumer, Module, RequestMethod } from '@nestjs/common'; import { InjectDynamicProviders } from 'nestjs-dynamic-providers'; @@ -28,7 +29,7 @@ export interface ChannelModuleOptions { controllers: [WebhookController, ChannelController], providers: [ChannelService], exports: [ChannelService], - imports: [NlpModule, ChatModule, AttachmentModule, CmsModule], + imports: [NlpModule, ChatModule, AttachmentModule, CmsModule, HttpModule], }) export class ChannelModule { configure(consumer: MiddlewareConsumer) {