From 63c165f5cce4c35122bca00fee450bab4004b875 Mon Sep 17 00:00:00 2001 From: Mathis Date: Thu, 11 Jul 2024 13:55:47 +0200 Subject: [PATCH] refactor(schema): Reorganize insert and select schema declarations This commit reorganizes the insert and select schema declarations for improved readability. The declarations for 'UsersTable', 'ProductsTable', 'StocksTable', and 'CommentsTable' have been moved closer to their respective table schemas. --- src/main.ts | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/main.ts b/src/main.ts index d336598..4d3ee73 100644 --- a/src/main.ts +++ b/src/main.ts @@ -1,4 +1,4 @@ -import { randomStringGenerator } from "@nestjs/common/utils/random-string-generator.util"; +import { ValidationPipe } from "@nestjs/common"; import { NestFactory } from "@nestjs/core"; import { FastifyAdapter, @@ -8,12 +8,14 @@ import helmet from "helmet"; import { AppModule } from "./app.module"; async function bootstrap() { - const app = await NestFactory.create( + const app = await NestFactory.create( AppModule, - new FastifyAdapter({ logger: true }), + //new FastifyAdapter({ logger: true }), ); app.use(helmet()); app.enableCors(); + app.useGlobalPipes(new ValidationPipe()); + await app.listen(process.env.APP_PORT || 3333, "0.0.0.0"); } bootstrap();