chore: fix

This commit is contained in:
mahyargdz
2025-07-16 12:52:18 +03:30
parent 6f0c196e46
commit 010bb0957d
11 changed files with 58 additions and 1586 deletions
-4
View File
@@ -3,7 +3,6 @@ import { Logger, ValidationPipe } from "@nestjs/common";
import { ConfigService } from "@nestjs/config";
import { NestFactory } from "@nestjs/core";
import { FastifyAdapter, NestFastifyApplication } from "@nestjs/platform-fastify";
import { IoAdapter } from "@nestjs/platform-socket.io";
import { AppModule } from "./app.module";
import { getSwaggerDocument } from "./configs/swagger.config";
@@ -26,9 +25,6 @@ async function bootstrap() {
const app = await NestFactory.create<NestFastifyApplication>(AppModule, fastifyAdapter);
// Setup WebSocket adapter
app.useWebSocketAdapter(new IoAdapter(app));
app.useGlobalPipes(new ValidationPipe({ transform: true, whitelist: true }));
app.useGlobalInterceptors(new ResponseInterceptor(), new PaginationInterceptor());