fix(SPG-524) BE - Create item wahana - Error constraint value limit
parent
554cda2144
commit
5880a6051f
|
@ -108,7 +108,7 @@ export class ItemDto extends BaseStatusDto implements ItemEntity {
|
||||||
example: 60,
|
example: 60,
|
||||||
})
|
})
|
||||||
@IsNumber()
|
@IsNumber()
|
||||||
@ValidateIf((body) => body.item_type.toLowerCase() == ItemType.WAHANA)
|
@ValidateIf((body) => body.item_type.toLowerCase() == ItemType.WAHANA && body.limit_type.toLowerCase() != LimitType.NO_LIMIT)
|
||||||
limit_value: number;
|
limit_value: number;
|
||||||
|
|
||||||
@ApiProperty({ type: Boolean, required: false })
|
@ApiProperty({ type: Boolean, required: false })
|
||||||
|
|
Loading…
Reference in New Issue