Fixes for product transformer
This commit is contained in:
parent
777d0a54d0
commit
ec7f0117fc
|
|
@ -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,
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue