📈 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!
TypeScript chartsclickhousedockergdprgoogle-analyticsmetricsmonitoringmysqlnestjsprivacyredisself-hostedselfhostedstatisticstailwindcssweb-analyticswebanalyticswebsite
Added validation to prevent an error (#183)
Yevhenii Kulisidi87f64fa563db
diff --git a/apps/production/src/alert/dto/alert.dto.ts b/apps/production/src/alert/dto/alert.dto.tsindex 98a9ae0ee..1fa2084d8 100644--- a/apps/production/src/alert/dto/alert.dto.ts+++ b/apps/production/src/alert/dto/alert.dto.ts@@ -1,5 +1,5 @@import { ApiProperty } from '@nestjs/swagger'-import { IsNotEmpty, IsOptional, Length } from 'class-validator'+import { IsEnum, IsNotEmpty, IsOptional, Length } from 'class-validator'export enum QueryMetric {PAGE_VIEWS = 'page_views',@@ -31,6 +31,7 @@ export class AlertDTO {@ApiProperty()@IsOptional()+ @IsEnum(QueryMetric)queryMetric?: QueryMetric@ApiProperty()@@ -62,6 +63,7 @@ export class CreateAlertDTO {@ApiProperty()@IsNotEmpty()+ @IsEnum(QueryMetric)queryMetric: QueryMetric@ApiProperty()