From 578b52919914f0fd2ba07075c7fc62888f1292ed Mon Sep 17 00:00:00 2001 From: Mathis Date: Tue, 8 Oct 2024 15:41:32 +0200 Subject: [PATCH] Add CredentialsModule to Groups and Authors modules This ensures both modules have access to the necessary credentials functionality, improving their capability to handle secure operations. The inclusion of DbModule in AuthorsModule aligns it with the design pattern used in GroupsModule. --- apps/backend/src/app/authors/authors.module.ts | 3 +++ apps/backend/src/app/groups/groups.module.ts | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/apps/backend/src/app/authors/authors.module.ts b/apps/backend/src/app/authors/authors.module.ts index 9482e37..75adad6 100644 --- a/apps/backend/src/app/authors/authors.module.ts +++ b/apps/backend/src/app/authors/authors.module.ts @@ -1,8 +1,11 @@ import { Module } from "@nestjs/common"; import { AuthorsController } from "apps/backend/src/app/authors/authors.controller"; import { AuthorsService } from "apps/backend/src/app/authors/authors.service"; +import { CredentialsModule } from "apps/backend/src/app/credentials/credentials.module"; +import { DbModule } from "apps/backend/src/app/db/db.module"; @Module({ + imports: [DbModule, CredentialsModule], controllers: [AuthorsController], providers: [AuthorsService], }) diff --git a/apps/backend/src/app/groups/groups.module.ts b/apps/backend/src/app/groups/groups.module.ts index ea277f3..57407f6 100644 --- a/apps/backend/src/app/groups/groups.module.ts +++ b/apps/backend/src/app/groups/groups.module.ts @@ -1,10 +1,11 @@ import { Module } from "@nestjs/common"; +import { CredentialsModule } from "apps/backend/src/app/credentials/credentials.module"; import { DbModule } from "../db/db.module"; import { GroupsController } from "./groups.controller"; import { GroupsService } from "./groups.service"; @Module({ - imports: [DbModule], + imports: [DbModule, CredentialsModule], controllers: [GroupsController], providers: [GroupsService], })