From 7258fc23e54cf40ee7ad56c30d5db2bdaa191cef Mon Sep 17 00:00:00 2001 From: amianthus <49116958+SirTenzin@users.noreply.github.com> Date: Thu, 27 Nov 2025 17:43:05 +0000 Subject: [PATCH] =?UTF-8?q?fix:=20=F0=9F=90=9B=20allow=20included=5Fusage?= =?UTF-8?q?=20to=20be=200?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../product-items/validateProductItems.ts | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/server/src/internal/products/product-items/validateProductItems.ts b/server/src/internal/products/product-items/validateProductItems.ts index 028b089cd..1093b0a65 100644 --- a/server/src/internal/products/product-items/validateProductItems.ts +++ b/server/src/internal/products/product-items/validateProductItems.ts @@ -103,15 +103,15 @@ const validateProductItem = ({ } } - if (isFeatureItem(item)) { - if (item.included_usage === 0 && feature?.type !== FeatureType.Boolean) { - throw new RecaseError({ - message: `Included usage for feature ${item.feature_id} must be greater than 0`, - code: ErrCode.InvalidInputs, - statusCode: StatusCodes.BAD_REQUEST, - }); - } - } + // if (isFeatureItem(item)) { + // if (item.included_usage === 0 && feature?.type !== FeatureType.Boolean) { + // throw new RecaseError({ + // message: `Included usage for feature ${item.feature_id} must be greater than 0`, + // code: ErrCode.InvalidInputs, + // statusCode: StatusCodes.BAD_REQUEST, + // }); + // } + // } // 5. If it's a price, can't have day, minute or hour interval if (isFeaturePriceItem(item) || isPriceItem(item)) {