chore: fix the purchased true for the danakservices

This commit is contained in:
mahyargdz
2025-08-31 11:36:57 +03:30
parent 8e9b939a0b
commit 787643a31f
8 changed files with 885 additions and 43 deletions
+3
View File
@@ -1,3 +1,4 @@
import compression from "@fastify/compress";
import { ClassSerializerInterceptor, Logger, ValidationPipe } from "@nestjs/common";
import { ConfigService } from "@nestjs/config";
import { NestFactory, Reflector } from "@nestjs/core";
@@ -22,6 +23,8 @@ async function bootstrap() {
const app = await NestFactory.create<NestFastifyApplication>(AppModule, fastifyAdapter);
await app.register(compression, { encodings: ["gzip", "deflate"] });
app.useGlobalPipes(new ValidationPipe({ transform: true, whitelist: true }));
app.useGlobalInterceptors(new ResponseInterceptor(), new PaginationInterceptor(), new ClassSerializerInterceptor(app.get(Reflector)));
app.useGlobalFilters(new HttpExceptionFilter());