Skip to content

Commit

Permalink
Merge pull request #54 from richard483/fix-1
Browse files Browse the repository at this point in the history
updated job update dto
  • Loading branch information
richard483 authored Jan 16, 2024
2 parents 9c6c63a + 016dce5 commit a807578
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "backend-8tech",
"version": "4.0.5",
"version": "4.0.6",
"description": "",
"author": "8tech",
"private": true,
Expand Down
8 changes: 4 additions & 4 deletions src/job/dto/job-update.dto.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { ApiProperty } from '@nestjs/swagger';
import { IsNotEmpty, IsString } from 'class-validator';
import { IsNotEmpty, IsOptional, IsString } from 'class-validator';

export class JobUpdateDto {
@ApiProperty()
Expand All @@ -8,17 +8,17 @@ export class JobUpdateDto {
readonly id?: string;

@ApiProperty()
@IsNotEmpty()
@IsString()
@IsOptional()
readonly title?: string;

@ApiProperty()
@IsNotEmpty()
@IsString()
@IsOptional()
readonly description?: string;

@ApiProperty()
@IsNotEmpty()
@IsString()
@IsOptional()
readonly companyId?: string;
}

0 comments on commit a807578

Please sign in to comment.