Skip to content

Commit

Permalink
fix: πŸ› cdd not created with /identities/register
Browse files Browse the repository at this point in the history
`createCdd` would always be false, even when specified in the request.
Adds a decorator to DTO param so `createCdd` is parsed properly
  • Loading branch information
polymath-eric committed Aug 8, 2024
1 parent 056c997 commit 50d1e0d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/identities/dto/register-identity.dto.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';
import { Type } from 'class-transformer';
import { IsDate, IsOptional, IsString, ValidateNested } from 'class-validator';
import { IsBoolean, IsDate, IsOptional, IsString, ValidateNested } from 'class-validator';

import { PermissionedAccountDto } from '~/accounts/dto/permissioned-account.dto';
import { TransactionBaseDto } from '~/common/dto/transaction-base-dto';
Expand Down Expand Up @@ -31,6 +31,7 @@ export class RegisterIdentityDto extends TransactionBaseDto {
type: 'boolean',
example: false,
})
@IsBoolean()
readonly createCdd: boolean;

@ApiPropertyOptional({
Expand Down

0 comments on commit 50d1e0d

Please sign in to comment.