@digione/node-custom-api 0.1.3 → 0.1.4

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/utils/user.js +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digione/node-custom-api",
3
- "version": "0.1.3",
3
+ "version": "0.1.4",
4
4
  "description": "Typescript node digione-api",
5
5
  "author": "Monchai Jirayupong <monchai.j@seven.co.th>",
6
6
  "license": "MIT",
package/utils/user.js CHANGED
@@ -231,7 +231,7 @@ const getAddressIndex = (data, { condition = {}, lang_code = "en" } = {}) => tsl
231
231
  });
232
232
  if (state) {
233
233
  result['state_id'] = state['id'];
234
- condition['country_id'] = result['state_id'];
234
+ condition['state_id'] = result['state_id'];
235
235
  }
236
236
  bol = (typeof result['state_id'] == "undefined");
237
237
  }