Skip to content

Commit

Permalink
fix: api validation pipe
Browse files Browse the repository at this point in the history
  • Loading branch information
devamitranjan committed Sep 24, 2024
1 parent 37f20f7 commit fdb0f73
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions api/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ async function bootstrap() {
app.useGlobalPipes(
new ValidationPipe({
whitelist: true,
transform: true,
// forbidNonWhitelisted: true,
}),
new ObjectIdPipe(),
Expand Down
7 changes: 5 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit fdb0f73

Please sign in to comment.