📈 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
Method should not be an array
Blue Mouse85585696d38f
diff --git a/apps/production/src/project/dto/create-monitor.dto.ts b/apps/production/src/project/dto/create-monitor.dto.tsindex 90df275e7..e230ff4c9 100644--- a/apps/production/src/project/dto/create-monitor.dto.ts+++ b/apps/production/src/project/dto/create-monitor.dto.ts@@ -49,8 +49,8 @@ export enum HttpType {// DTO for HTTP Optionsexport class HttpOptions {@IsArray()- @IsEnum(HttpMethodEnum, { each: true })- method: HttpMethodEnum[]+ @IsEnum(HttpMethodEnum)+ method: HttpMethodEnum@IsOptional()@IsObject()diff --git a/apps/production/src/project/entity/monitor.entity.ts b/apps/production/src/project/entity/monitor.entity.tsindex 8d636a543..373bcf83a 100644--- a/apps/production/src/project/entity/monitor.entity.ts+++ b/apps/production/src/project/entity/monitor.entity.ts@@ -67,7 +67,7 @@ export class MonitorEntity {@ApiProperty()@Column({ type: 'json', nullable: true })httpOptions: {- method: string[]+ method: stringbody?: Record<string, unknown>headers?: Record<string, string>}