📈 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
fix
Blue Mouse06421c4480b6
diff --git a/src/alert/alert.controller.ts b/src/alert/alert.controller.tsindex 6346ad89a..ec2009a5f 100644--- a/src/alert/alert.controller.ts+++ b/src/alert/alert.controller.ts@@ -120,7 +120,8 @@ export class AlertController {pid: alertDTO.pid,}} catch (e) {- throw new BadRequestException(e)+ console.error('Error while creating alert', e)+ throw new BadRequestException('Error occured while creating alert')}}diff --git a/src/alert/dto/alert.dto.ts b/src/alert/dto/alert.dto.tsindex 9be3d8388..d51f88ad0 100644--- a/src/alert/dto/alert.dto.ts+++ b/src/alert/dto/alert.dto.ts@@ -1,5 +1,5 @@import { ApiProperty } from '@nestjs/swagger'-import { IsNotEmpty, IsOptional } from 'class-validator'+import { IsNotEmpty, IsOptional, Length } from 'class-validator'export enum QueryMetric {PAGE_VIEWS = 'page_views',@@ -52,6 +52,7 @@ export class CreateAlertDTO {@ApiProperty()@IsNotEmpty()+ @Length(1, 50)name: string@ApiProperty()