fix(torob): correctly map packageSize 0 and OUT_OF_STOCK to outofstock in Torob API
Deploy Canina / deploy (push) Failing after 59s
E2E Playwright Tests / Run Full E2E & Security Suites (push) Failing after 6s

This commit is contained in:
devops committed 2026-10-12 18:49:48 +00:00
1 parent e4932a94e3
commit 4d5159a169
1 file changed
+2
+2
View File
@@ -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');