Skip to content

Commit

Permalink
[M1_TR-210] Rearrange decorators
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonclchua committed Sep 7, 2023
1 parent d8034a9 commit 724ee30
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion server/src/api/job/dtos/create-job-dto.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ export class CreateJobDto {
type: string;

@ApiProperty()
@IsEnum(Tag, { each: true })
@IsArray()
@IsEnum(Tag, { each: true })
tags: Tag[];

@ApiProperty()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ export class CreateJobWithoutCustomerIdAndUserIdDto {
type: string;

@ApiProperty()
@IsEnum(Tag, { each: true })
@IsArray()
@IsEnum(Tag, { each: true })
tags: Tag[];

@ApiProperty()
Expand Down

0 comments on commit 724ee30

Please sign in to comment.