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( app.useGlobalPipes(
new ValidationPipe({ new ValidationPipe({
whitelist: true, whitelist: true,
transform: true,
// forbidNonWhitelisted: true, // forbidNonWhitelisted: true,
}), }),
new ObjectIdPipe(), new ObjectIdPipe(),

7
package-lock.json generated
View File

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