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!

fast fix (#175)

Maksim Mrugbbb6bf73076d
diff --git a/apps/production/src/project/dto/update-project.dto.ts b/apps/production/src/project/dto/update-project.dto.ts
index 5b92796b4..da20d1051 100644
--- a/apps/production/src/project/dto/update-project.dto.ts
+++ b/apps/production/src/project/dto/update-project.dto.ts
@@ -1,4 +1,6 @@
import { IntersectionType, PickType } from '@nestjs/mapped-types'
+import { IsNotEmpty } from 'class-validator'
+import { ApiProperty } from '@nestjs/swagger'
import { ProjectDTO } from './project.dto'
import { ProjectPasswordDto } from './project-password.dto'
@@ -8,9 +10,23 @@ export class UpdateProjectDto extends IntersectionType(
'name',
'origins',
'ipBlacklist',
- 'active',
- 'public',
'isCaptcha',
] as const),
ProjectPasswordDto,
-) {}
+) {
+ @ApiProperty({
+ required: true,
+ description:
+ "The project's state. If enabled - all the incoming analytics data will be saved.",
+ })
+ @IsNotEmpty()
+ active: boolean
+
+ @ApiProperty({
+ required: true,
+ description:
+ "When true, anyone on the internet (including Google) would be able to see the project's Dashboard.",
+ })
+ @IsNotEmpty()
+ public: boolean
+}