From 1e4e2d5198e89ef814d31f843e7c616874423fa4 Mon Sep 17 00:00:00 2001 From: Julien Martin Date: Thu, 8 Oct 2026 18:03:24 +0200 Subject: [PATCH] fix(cards): allow payload object in DTOs Co-authored-by: Cursor --- backend/src/modules/cards/dto/cards.dto.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/backend/src/modules/cards/dto/cards.dto.ts b/backend/src/modules/cards/dto/cards.dto.ts index 7632672..a22c8a3 100644 --- a/backend/src/modules/cards/dto/cards.dto.ts +++ b/backend/src/modules/cards/dto/cards.dto.ts @@ -3,6 +3,7 @@ import { IsDateString, IsEnum, IsOptional, + IsObject, IsString, IsUUID, MaxLength, @@ -51,6 +52,7 @@ export class CreerCarteDto { @ApiPropertyOptional() @IsOptional() + @IsObject() payload?: Record; } @@ -86,6 +88,7 @@ export class MajCarteDto { @ApiPropertyOptional() @IsOptional() + @IsObject() payload?: Record; }