Skip to content

Commit

Permalink
fix: πŸ› Add missing IsOptional to CreateVenueDto.signers
Browse files Browse the repository at this point in the history
Without the `IsOptional` annotation, creating a venue without signers
was not posssible. Adding it, allows the functionality to work as
expected
  • Loading branch information
prashantasdeveloper committed Nov 26, 2024
1 parent e4b04c9 commit 8849d34
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/settlements/dto/create-venue.dto.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
/* istanbul ignore file */

import { ApiProperty } from '@nestjs/swagger';
import { VenueType } from '@polymeshassociation/polymesh-sdk/types';
import { IsEnum, IsString } from 'class-validator';
import { IsArray, IsEnum, IsOptional, IsString } from 'class-validator';

import { TransactionBaseDto } from '~/common/dto/transaction-base-dto';

Expand All @@ -29,6 +28,8 @@ export class CreateVenueDto extends TransactionBaseDto {
isArray: true,
example: ['5GwwYnwCYcJ1Rkop35y7SDHAzbxrCkNUDD4YuCUJRPPXbvyV'],
})
@IsOptional()
@IsArray()
@IsString({ each: true })
readonly signers?: string[];
}

0 comments on commit 8849d34

Please sign in to comment.