From 8309da9cf85f477fd08aca1d6d142b552af7e2f6 Mon Sep 17 00:00:00 2001 From: Xantass Date: Sun, 13 Jul 2025 00:28:06 +0200 Subject: [PATCH 1/3] fix: just change the type from number to string --- src/modules/orders/DTO/food_ordered.dto.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/orders/DTO/food_ordered.dto.ts b/src/modules/orders/DTO/food_ordered.dto.ts index 16382b0..0344f8d 100644 --- a/src/modules/orders/DTO/food_ordered.dto.ts +++ b/src/modules/orders/DTO/food_ordered.dto.ts @@ -27,7 +27,7 @@ class ModsIngredient { @IsNumber() @IsNotEmpty() - suppPrice: number; + suppPrice: string; } export class FoodOrderedDto { From 44f3670278299c7ec6b0c693584599db7bb8938f Mon Sep 17 00:00:00 2001 From: Xantas Date: Mon, 14 Jul 2025 21:06:55 +0200 Subject: [PATCH 2/3] fix: the suppPrice is not required --- src/modules/orders/DTO/food_ordered.dto.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/orders/DTO/food_ordered.dto.ts b/src/modules/orders/DTO/food_ordered.dto.ts index 0344f8d..b5a884f 100644 --- a/src/modules/orders/DTO/food_ordered.dto.ts +++ b/src/modules/orders/DTO/food_ordered.dto.ts @@ -27,7 +27,7 @@ class ModsIngredient { @IsNumber() @IsNotEmpty() - suppPrice: string; + suppPrice?: string; } export class FoodOrderedDto { From 35c36ce1e2c05dece7a61c788d2d16f873b26450 Mon Sep 17 00:00:00 2001 From: Jules Date: Mon, 14 Jul 2025 15:55:05 -0400 Subject: [PATCH 3/3] fix: change suppPrice to optional and update type to string --- src/modules/orders/DTO/food_ordered.dto.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modules/orders/DTO/food_ordered.dto.ts b/src/modules/orders/DTO/food_ordered.dto.ts index b5a884f..6b7d238 100644 --- a/src/modules/orders/DTO/food_ordered.dto.ts +++ b/src/modules/orders/DTO/food_ordered.dto.ts @@ -25,8 +25,8 @@ class ModsIngredient { @IsNotEmpty() ingredient: string; - @IsNumber() - @IsNotEmpty() + @IsOptional() + @IsString() suppPrice?: string; }