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.
This commit is contained in:
Mathis H (Avnyr) 2024-10-08 15:41:32 +02:00
parent 2fb2a16c56
commit 578b529199
Signed by: Mathis
GPG Key ID: DD9E0666A747D126
2 changed files with 5 additions and 1 deletions

View File

@ -1,8 +1,11 @@
import { Module } from "@nestjs/common"; import { Module } from "@nestjs/common";
import { AuthorsController } from "apps/backend/src/app/authors/authors.controller"; import { AuthorsController } from "apps/backend/src/app/authors/authors.controller";
import { AuthorsService } from "apps/backend/src/app/authors/authors.service"; 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({ @Module({
imports: [DbModule, CredentialsModule],
controllers: [AuthorsController], controllers: [AuthorsController],
providers: [AuthorsService], providers: [AuthorsService],
}) })

View File

@ -1,10 +1,11 @@
import { Module } from "@nestjs/common"; import { Module } from "@nestjs/common";
import { CredentialsModule } from "apps/backend/src/app/credentials/credentials.module";
import { DbModule } from "../db/db.module"; import { DbModule } from "../db/db.module";
import { GroupsController } from "./groups.controller"; import { GroupsController } from "./groups.controller";
import { GroupsService } from "./groups.service"; import { GroupsService } from "./groups.service";
@Module({ @Module({
imports: [DbModule], imports: [DbModule, CredentialsModule],
controllers: [GroupsController], controllers: [GroupsController],
providers: [GroupsService], providers: [GroupsService],
}) })