erp-pos-ecommerce-shared 0.2.2 → 0.2.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/hooks.js CHANGED
@@ -92,7 +92,11 @@ var getAttributeValues = async ({
92
92
  var createAttribute = async ({
93
93
  attribute
94
94
  }) => {
95
- const { data } = await api.post("/attribute", attribute);
95
+ const { data } = await api.post("/attribute", {
96
+ name: attribute.name,
97
+ values: attribute.values,
98
+ productID: attribute.productId
99
+ });
96
100
  return data;
97
101
  };
98
102
  var createAttributesValuesBatch = async ({