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(),

7
package-lock.json generated
View File

@ -7,6 +7,7 @@
"": {
"name": "hexabot",
"version": "2.0.0",
"license": "AGPL-3.0-only",
"workspaces": [
"frontend",
"widget"
@ -19,7 +20,8 @@
},
"frontend": {
"name": "hexabot-ui",
"version": "0.1.0",
"version": "2.0.0",
"license": "AGPL-3.0-only",
"dependencies": {
"@chatscope/chat-ui-kit-react": "^2.0.3",
"@chatscope/chat-ui-kit-styles": "^1.4.0",
@ -9802,7 +9804,8 @@
},
"widget": {
"name": "hexabot-widget",
"version": "0.0.0",
"version": "2.0.0",
"license": "AGPL-3.0-only",
"dependencies": {
"@types/emoji-js": "^3.5.2",
"autolinker": "^4.0.0",