@lancom/shared 0.0.381 → 0.0.382

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.
@@ -38,8 +38,8 @@ const api = {
38
38
  fetchCustomerOrders(customer, shop) {
39
39
  return _get(`shop/${shop}/customer/${customer._id}/orders`);
40
40
  },
41
- searchProducts(shop, text) {
42
- return _get(`shop/${shop}/products/search`, { text });
41
+ searchProducts(shop, text, save) {
42
+ return _get(`shop/${shop}/products/search`, { text, save });
43
43
  },
44
44
  fetchProducts(shop, params) {
45
45
  return _get(`shop/${shop}/products`, params);
@@ -118,7 +118,7 @@ export default {
118
118
  });
119
119
  }
120
120
  try {
121
- this.products = this.text ? await api.searchProducts(this.shop._id, this.text) : [];
121
+ this.products = this.text ? await api.searchProducts(this.shop._id, this.text, true) : [];
122
122
  } catch (e) {
123
123
  this.products = [];
124
124
  } finally {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lancom/shared",
3
- "version": "0.0.381",
3
+ "version": "0.0.382",
4
4
  "description": "lancom common scripts",
5
5
  "author": "e.tokovenko <e.tokovenko@gmail.com>",
6
6
  "repository": {