mirror of
https://github.com/hexastack/hexabot
synced 2025-03-10 22:33:49 +00:00
fix: add transform
This commit is contained in:
parent
f24ba58709
commit
f1dbc7a49d
@ -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