refactor(modules): mark DatabaseModule and CryptoModule as global and remove redundant imports
Some checks failed
Backend Tests / test (push) Has been cancelled
Lint / lint (push) Has been cancelled

Optimize module imports by marking `DatabaseModule` and `CryptoModule` as global. Remove explicit imports from other modules to reduce duplication and improve maintainability. Update environment variable limits for image and GIF sizes in production.
This commit is contained in:
Mathis HERRIOT
2026-01-14 22:50:30 +01:00
parent db17994bb5
commit 4ca15b578d
12 changed files with 14 additions and 42 deletions

View File

@@ -1,6 +1,4 @@
import { forwardRef, Module } from "@nestjs/common";
import { CryptoModule } from "../crypto/crypto.module";
import { DatabaseModule } from "../database/database.module";
import { SessionsModule } from "../sessions/sessions.module";
import { UsersModule } from "../users/users.module";
import { AuthController } from "./auth.controller";
@@ -12,12 +10,7 @@ import { RbacService } from "./rbac.service";
import { RbacRepository } from "./repositories/rbac.repository";
@Module({
imports: [
forwardRef(() => UsersModule),
CryptoModule,
SessionsModule,
DatabaseModule,
],
imports: [forwardRef(() => UsersModule), SessionsModule],
controllers: [AuthController],
providers: [
AuthService,