mirror of
https://github.com/hexastack/hexabot
synced 2025-02-22 20:38:32 +00:00
Merge pull request #80 from devamitranjan/FIX_ISSUE_79
fix: api validation pipe
This commit is contained in:
commit
d16ef942bb
@ -51,6 +51,7 @@ async function bootstrap() {
|
|||||||
app.useGlobalPipes(
|
app.useGlobalPipes(
|
||||||
new ValidationPipe({
|
new ValidationPipe({
|
||||||
whitelist: true,
|
whitelist: true,
|
||||||
|
transform: true,
|
||||||
// forbidNonWhitelisted: true,
|
// forbidNonWhitelisted: true,
|
||||||
}),
|
}),
|
||||||
new ObjectIdPipe(),
|
new ObjectIdPipe(),
|
||||||
|
Loading…
Reference in New Issue
Block a user