From 4d5159a1690aae832ae212573ba003e636847afa Mon Sep 17 00:00:00 2001 From: devops Date: Mon, 12 Oct 2026 18:49:48 +0000 Subject: [PATCH] fix(torob): correctly map packageSize 0 and OUT_OF_STOCK to outofstock in Torob API --- backend/src/products/torob.controller.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/backend/src/products/torob.controller.ts b/backend/src/products/torob.controller.ts index 5292f1cd..ac0c420e 100644 --- a/backend/src/products/torob.controller.ts +++ b/backend/src/products/torob.controller.ts @@ -186,6 +186,8 @@ export class TorobController { const isInStock = product.stockStatus !== 'DISCONTINUED' && + product.stockStatus !== 'OUT_OF_STOCK' && + (product.packageSize === null || Number(product.packageSize) > 0) && String(product.stockStatus || '') .toLowerCase() .includes('in');