Skip to content

📈 Open source, privacy-first web analytics — a cookie-less Google Analytics alternative with built-in error tracking and performance monitoring. Self-host it or use our cloud. Get started for free!

limit project name lenght

Blue Mouse68b704614a71
diff --git a/src/project/dto/project.dto.ts b/src/project/dto/project.dto.ts
index 157395e3c..e80e4e971 100644
--- a/src/project/dto/project.dto.ts
+++ b/src/project/dto/project.dto.ts
@@ -1,5 +1,5 @@
import { ApiProperty } from '@nestjs/swagger'
-import { IsNotEmpty } from 'class-validator'
+import { IsNotEmpty, Length } from 'class-validator'
export class ProjectDTO {
@ApiProperty({
@@ -8,6 +8,7 @@ export class ProjectDTO {
description: 'A display name for your project',
})
@IsNotEmpty()
+ @Length(1, 50)
name: string
@ApiProperty({