mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-25 11:16:31 -05:00
Fix formatting in main.ts
Signed-off-by: David Mehren <git@herrmehren.de>
This commit is contained in:
parent
6e7d98502d
commit
74208468c4
1 changed files with 14 additions and 8 deletions
22
src/main.ts
22
src/main.ts
|
@ -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();
|
||||||
|
|
Loading…
Reference in a new issue