Fixes for product transformer

This commit is contained in:
David Bomba 2022-06-04 08:48:52 +10:00
parent 777d0a54d0
commit ec7f0117fc

View File

@ -92,7 +92,7 @@ class ProductTransformer extends EntityTransformer
'is_deleted' => (bool) $product->is_deleted, 'is_deleted' => (bool) $product->is_deleted,
'in_stock_quantity' => (int) $product->in_stock_quantity ?: 0, 'in_stock_quantity' => (int) $product->in_stock_quantity ?: 0,
'stock_notification' => (bool) $product->stock_notification, 'stock_notification' => (bool) $product->stock_notification,
'stock_notification_threshold' => (bool) $product->stock_notification_threshold, 'stock_notification_threshold' => (int) $product->stock_notification_threshold,
]; ];
} }
} }