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:
@@ -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],
|
||||
})
|
||||
|
||||
@@ -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],
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user