From 602bfea3f7a6e5a5234dfe6398224c642c3fe95a Mon Sep 17 00:00:00 2001 From: Emnaghz Date: Thu, 20 Feb 2025 21:41:40 +0100 Subject: [PATCH] fix: remove Attachment module --- api/src/cms/cms.module.ts | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/api/src/cms/cms.module.ts b/api/src/cms/cms.module.ts index 660b0430..8c8bf456 100644 --- a/api/src/cms/cms.module.ts +++ b/api/src/cms/cms.module.ts @@ -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: * 1. The name "Hexabot" is a trademark of Hexastack. You may not use this name in derivative works without express written permission. @@ -9,11 +9,8 @@ import { forwardRef, Module } from '@nestjs/common'; import { MongooseModule } from '@nestjs/mongoose'; -import { AttachmentModule } from '@/attachment/attachment.module'; import { ChatModule } from '@/chat/chat.module'; -import { AttachmentModel } from '../attachment/schemas/attachment.schema'; - import { ContentTypeController } from './controllers/content-type.controller'; import { ContentController } from './controllers/content.controller'; import { MenuController } from './controllers/menu.controller'; @@ -29,13 +26,7 @@ import { MenuService } from './services/menu.service'; @Module({ imports: [ - MongooseModule.forFeature([ - ContentModel, - ContentTypeModel, - AttachmentModel, - MenuModel, - ]), - AttachmentModule, + MongooseModule.forFeature([ContentModel, ContentTypeModel, MenuModel]), forwardRef(() => ChatModule), ], controllers: [ContentController, ContentTypeController, MenuController],