erp-pos-ecommerce-shared 0.2.2 → 0.2.3

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/index.js CHANGED
@@ -188,7 +188,11 @@ var getAttributeValues = async ({
188
188
  var createAttribute = async ({
189
189
  attribute
190
190
  }) => {
191
- const { data } = await api.post("/attribute", attribute);
191
+ const { data } = await api.post("/attribute", {
192
+ name: attribute.name,
193
+ values: attribute.values,
194
+ productID: attribute.productId
195
+ });
192
196
  return data;
193
197
  };
194
198
  var createAttributesValuesBatch = async ({