File tree Expand file tree Collapse file tree
src/api/server/services/products Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11{
22 "name" : " cezerin" ,
3- "version" : " 0.12 .0" ,
3+ "version" : " 0.13 .0" ,
44 "description" : " Cezerin allow you to create online store with full-stack JavaScript. https://cezerin.com" ,
55 "keywords" : [
66 " cezerin" ,
Original file line number Diff line number Diff line change @@ -398,8 +398,6 @@ class ProductsService {
398398 product . tax_class = parse . getString ( data . tax_class ) ;
399399 product . related_product_ids = parse . getArrayIfValid ( data . related_product_ids ) || [ ] ;
400400 product . prices = parse . getArrayIfValid ( data . prices ) || [ ] ;
401- product . options = parse . getArrayIfValid ( data ) || [ ] ;
402- product . variants = parse . getArrayIfValid ( data . variants ) || [ ] ;
403401 product . cost_price = parse . getNumberIfPositive ( data . cost_price ) || 0 ;
404402 product . regular_price = parse . getNumberIfPositive ( data . regular_price ) || 0 ;
405403 product . sale_price = parse . getNumberIfPositive ( data . sale_price ) || 0 ;
@@ -500,14 +498,6 @@ class ProductsService {
500498 product . prices = parse . getArrayIfValid ( data . prices ) || [ ] ;
501499 }
502500
503- if ( data . options !== undefined ) {
504- product . options = parse . getArrayIfValid ( data . options ) || [ ] ;
505- }
506-
507- if ( data . variants !== undefined ) {
508- product . variants = parse . getArrayIfValid ( data . variants ) || [ ] ;
509- }
510-
511501 if ( data . cost_price !== undefined ) {
512502 product . cost_price = parse . getNumberIfPositive ( data . cost_price ) || 0 ;
513503 }
You can’t perform that action at this time.
0 commit comments