Fix formatting in main.ts

Signed-off-by: David Mehren <git@herrmehren.de>
This commit is contained in:
David Mehren 2020-07-25 20:26:10 +02:00
parent 5a11a7cc8e
commit 9fd67eb1ad
No known key found for this signature in database
GPG key ID: 6017AF117F9756CB

View file

@ -1,11 +1,17 @@
import { ValidationPipe } from '@nestjs/common' import { ValidationPipe } from '@nestjs/common';
import { NestFactory } from '@nestjs/core' import { NestFactory } from '@nestjs/core';
import { AppModule } from './app.module' import { AppModule } from './app.module';
async function bootstrap() { async function bootstrap() {
const app = await NestFactory.create(AppModule) const app = await NestFactory.create(AppModule);
app.useGlobalPipes(new ValidationPipe({ forbidUnknownValues: true, skipMissingProperties: false, transform: true })) app.useGlobalPipes(
await app.listen(3000) new ValidationPipe({
forbidUnknownValues: true,
skipMissingProperties: false,
transform: true,
}),
);
await app.listen(3000);
} }
bootstrap() bootstrap();