Skip to content

Commit e34b44f

Browse files
committed
removing extra comments
1 parent 537aaed commit e34b44f

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

src/main.ts

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,7 @@ import { ValidationPipe } from '@nestjs/common';
55
async function bootstrap() {
66
const app = await NestFactory.create(AppModule);
77

8-
/*
9-
Warning for the AC team:
10-
When whitelist is true, NestJS will automatically remove any properties from the incoming data that are not defined in your DTO class.
11-
When forbidNonWhitelisted is true, instead of removing the extra properties, NestJS will throw an error if it finds any field not defined in your DTO.
12-
When transform is true, NestJS will automatically transform payloads to be objects typed according to their DTO classes.
13-
14-
# hint for the future: while making users module add a dto folder inside users module and define your dtos there.
15-
# TODO: add common dtos for requests and responses
16-
*/
8+
// TODO: add common dtos for requests and responses
179

1810
app.useGlobalPipes(
1911
new ValidationPipe({

0 commit comments

Comments
 (0)