chore: fix the purchased true for the danakservices
This commit is contained in:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user