Skip to content

Commit

Permalink
Method should not be an array
Browse files Browse the repository at this point in the history
  • Loading branch information
Blaumaus committed Aug 26, 2024
1 parent c364712 commit 8558569
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions apps/production/src/project/dto/create-monitor.dto.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ export enum HttpType {
// DTO for HTTP Options
export class HttpOptions {
@IsArray()
@IsEnum(HttpMethodEnum, { each: true })
method: HttpMethodEnum[]
@IsEnum(HttpMethodEnum)
method: HttpMethodEnum

@IsOptional()
@IsObject()
Expand Down
2 changes: 1 addition & 1 deletion apps/production/src/project/entity/monitor.entity.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ export class MonitorEntity {
@ApiProperty()
@Column({ type: 'json', nullable: true })
httpOptions: {
method: string[]
method: string
body?: Record<string, unknown>
headers?: Record<string, string>
}
Expand Down

0 comments on commit 8558569

Please sign in to comment.