feat: add CommonModule with PurgeService and global exception filter

Introduced CommonModule to centralize shared functionality. Added PurgeService for automated database cleanup and a global exception filter for unified error handling.
This commit is contained in:
Mathis HERRIOT
2026-01-08 15:25:04 +01:00
parent 705f1ad6e0
commit 2218768adb
4 changed files with 138 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
import { Global, Module } from "@nestjs/common";
import { DatabaseModule } from "../database/database.module";
import { PurgeService } from "./services/purge.service";
@Global()
@Module({
imports: [DatabaseModule],
providers: [PurgeService],
exports: [PurgeService],
})
export class CommonModule {}