fix: api validation pipe

This commit is contained in:
Amit Ranjan
2024-09-24 16:45:30 +05:30
parent 37f20f7d79
commit fdb0f73980
2 changed files with 6 additions and 2 deletions

View File

@@ -51,6 +51,7 @@ async function bootstrap() {
app.useGlobalPipes(
new ValidationPipe({
whitelist: true,
transform: true,
// forbidNonWhitelisted: true,
}),
new ObjectIdPipe(),