fix: bill
This commit is contained in:
@@ -76,11 +76,10 @@ export class CreateCompanyDto extends PickType(CompleteRegistrationDto, ["phone"
|
||||
@ApiProperty({ description: "آدرس تصویر کاور", example: "https://www.example.com/cover.jpg" })
|
||||
coverImageUrl: string;
|
||||
|
||||
@IsOptional()
|
||||
@IsInt({ message: CompanyMessage.METRAGE_MUST_BE_INT })
|
||||
@Min(1, { message: CompanyMessage.METRAGE_MUST_BE_POSITIVE })
|
||||
@ApiProperty({ description: "متراژ شرکت (متر مربع)", example: 500 })
|
||||
metrage?: number;
|
||||
metrage: number;
|
||||
|
||||
@IsOptional()
|
||||
@IsNotEmpty({ message: CompanyMessage.IS_ACTIVE_REQUIRED })
|
||||
@@ -126,6 +125,7 @@ export class CreateCompanyRequestDto extends PickType(CreateCompanyDto, [
|
||||
"industryId",
|
||||
"products",
|
||||
"services",
|
||||
"metrage"
|
||||
]) {
|
||||
@IsNotEmpty({ message: CompanyMessage.CHIEF_EXECUTIVE_REQUIRED })
|
||||
@IsString({ message: CompanyMessage.CHIEF_EXECUTIVE_MUST_BE_STRING })
|
||||
|
||||
Reference in New Issue
Block a user