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!

Fix: monitorIds must be an array

Blue Mouse97188b3f9be4
diff --git a/apps/production/src/analytics/dto/get-uptime-birdseye.dto.ts b/apps/production/src/analytics/dto/get-uptime-birdseye.dto.ts
index 3e421ad59..69d7bc265 100644
--- a/apps/production/src/analytics/dto/get-uptime-birdseye.dto.ts
+++ b/apps/production/src/analytics/dto/get-uptime-birdseye.dto.ts
@@ -1,5 +1,5 @@
import { ApiProperty } from '@nestjs/swagger'
-import { IsArray, IsNotEmpty, IsOptional } from 'class-validator'
+import { IsNotEmpty, IsOptional } from 'class-validator'
import { DEFAULT_TIMEZONE } from '../../user/entities/user.entity'
export class GetUptimeBirdseyeDto {
@@ -11,10 +11,9 @@ export class GetUptimeBirdseyeDto {
@IsOptional()
monitorId?: number
- @ApiProperty({ required: false })
+ @ApiProperty({ required: false, isArray: true })
@IsOptional()
- @IsArray()
- monitorIds?: number[]
+ monitorIds?: number[] | string[]
@ApiProperty()
period: string