removed constraint for group creation dto

This commit is contained in:
Suman991 2026-04-17 11:23:23 +05:30
parent 8510d4a7cb
commit cdab822feb

View File

@ -25,10 +25,10 @@ export class CreateConversationDto {
type: [String], type: [String],
example: ['userId1', 'userId2'], example: ['userId1', 'userId2'],
description: 'List of participant user IDs', description: 'List of participant user IDs',
minItems: 2, // minItems: 2,
}) })
@IsArray() @IsArray()
@ArrayMinSize(2) // @ArrayMinSize(2)
@ArrayUnique() @ArrayUnique()
@IsString({ each: true }) @IsString({ each: true })
@IsNotEmpty({ each: true }) @IsNotEmpty({ each: true })