update concurrentCapacity

This commit is contained in:
2026-06-01 13:26:25 +03:30
parent 150b189be5
commit 0d90703827
5 changed files with 59 additions and 3 deletions
@@ -1,13 +1,16 @@
import { ApiPropertyOptional } from '@nestjs/swagger';
import {
IsBoolean,
IsInt,
IsLatitude,
IsLongitude,
IsOptional,
IsString,
IsUUID,
Matches,
Max,
MaxLength,
Min,
} from 'class-validator';
export class UpdateBusinessDto {
@@ -76,4 +79,16 @@ export class UpdateBusinessDto {
@IsOptional()
@IsBoolean()
serviceClassesEnabled?: boolean;
@ApiPropertyOptional({
example: 1,
description: 'How many customers can be served at the same time',
minimum: 1,
maximum: 20,
})
@IsOptional()
@IsInt()
@Min(1)
@Max(20)
concurrentCapacity?: number;
}