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!

Updated DTO of updating subscriber

Yevhenii Kulisidi987d45155d21
diff --git a/src/project/dto/update-subscriber.dto.ts b/src/project/dto/update-subscriber.dto.ts
index 973cfd46e..5e4e0ee8e 100644
--- a/src/project/dto/update-subscriber.dto.ts
+++ b/src/project/dto/update-subscriber.dto.ts
@@ -1,4 +1,4 @@
-import { PartialType } from '@nestjs/swagger'
+import { PickType } from '@nestjs/swagger'
import { Matches, IsUUID } from 'class-validator'
import { AddSubscriberBodyDto } from './add-subscriber.dto'
@@ -10,6 +10,6 @@ export class UpdateSubscriberParamsDto {
readonly subscriberId: string
}
-export class UpdateSubscriberBodyDto extends PartialType(
- AddSubscriberBodyDto,
-) {}
+export class UpdateSubscriberBodyDto extends PickType(AddSubscriberBodyDto, [
+ 'reportFrequency',
+] as const) {}