use uuid7

This commit is contained in:
Philipinho
2024-06-27 01:53:32 +01:00
parent 723928d678
commit aea37eecda
17 changed files with 89 additions and 28 deletions

View File

@ -7,6 +7,6 @@ export class AddGroupUserDto extends GroupIdDto {
message: 'you cannot add more than 50 users at a time',
})
@ArrayMinSize(1)
@IsUUID(4, { each: true })
@IsUUID('all', { each: true })
userIds: string[];
}

View File

@ -21,7 +21,7 @@ export class CreateGroupDto {
@IsOptional()
@IsArray()
@ArrayMaxSize(50)
@IsUUID(4, { each: true })
@IsUUID('all', { each: true })
userIds?: string[];
}