.
This commit is contained in:
1 parent
4baea89f89
commit
fd386ed202
32 files changed
+1128
-601
No files matched your search
@@ -10,17 +10,11 @@ import {
|
||||
Min,
|
||||
ValidateNested,
|
||||
} from 'class-validator';
|
||||
import { TEAM_SIDES } from '../../global/database/schema';
|
||||
import type { TeamSide } from '../../global/database/schema';
|
||||
|
||||
class CaptainAssignmentDto {
|
||||
@IsEnum(TEAM_SIDES)
|
||||
side!: TeamSide;
|
||||
|
||||
@IsOptional()
|
||||
@IsInt()
|
||||
@Min(1)
|
||||
groupIndex?: number;
|
||||
teamIndex!: number;
|
||||
|
||||
@IsMongoId()
|
||||
userId!: string;
|
||||
@@ -46,13 +40,9 @@ export class StartAuctionDto {
|
||||
}
|
||||
|
||||
export class PlaceBidDto {
|
||||
@IsEnum(TEAM_SIDES)
|
||||
side!: TeamSide;
|
||||
|
||||
@IsOptional()
|
||||
@IsInt()
|
||||
@Min(1)
|
||||
groupIndex?: number;
|
||||
teamIndex!: number;
|
||||
|
||||
@IsInt()
|
||||
@Min(1)
|
||||
|
||||
Reference in new issue
Block a user