mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-21 17:26:29 -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 { NestFactory } from '@nestjs/core'
|
||||
import { AppModule } from './app.module'
|
||||
import { ValidationPipe } from '@nestjs/common';
|
||||
import { NestFactory } from '@nestjs/core';
|
||||
import { AppModule } from './app.module';
|
||||
|
||||
async function bootstrap () {
|
||||
const app = await NestFactory.create(AppModule)
|
||||
app.useGlobalPipes(new ValidationPipe({ forbidUnknownValues: true, skipMissingProperties: false, transform: true }))
|
||||
await app.listen(3000)
|
||||
async function bootstrap() {
|
||||
const app = await NestFactory.create(AppModule);
|
||||
app.useGlobalPipes(
|
||||
new ValidationPipe({
|
||||
forbidUnknownValues: true,
|
||||
skipMissingProperties: false,
|
||||
transform: true,
|
||||
}),
|
||||
);
|
||||
await app.listen(3000);
|
||||
}
|
||||
|
||||
bootstrap()
|
||||
bootstrap();
|
||||
|
|
Loading…
Reference in a new issue