diff --git a/package-lock.json b/package-lock.json index b9cc11f..8e1a177 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "backend-8tech", - "version": "4.0.5", + "version": "4.0.6", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "backend-8tech", - "version": "4.0.5", + "version": "4.0.6", "license": "UNLICENSED", "dependencies": { "@nestjs/common": "^9.4.3", diff --git a/package.json b/package.json index 3fb2675..1d12229 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "backend-8tech", - "version": "4.0.5", + "version": "4.0.6", "description": "", "author": "8tech", "private": true, diff --git a/src/job/dto/job-update.dto.ts b/src/job/dto/job-update.dto.ts index 132714b..23d9bfe 100644 --- a/src/job/dto/job-update.dto.ts +++ b/src/job/dto/job-update.dto.ts @@ -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() @@ -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; }