@digione/node-custom-api 0.1.3 → 0.1.4-alpha

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/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-alpha",
4
4
  "description": "Typescript node digione-api",
5
5
  "author": "Monchai Jirayupong <monchai.j@seven.co.th>",
6
6
  "license": "MIT",
package/utils/stream.js CHANGED
@@ -1711,8 +1711,11 @@ class StreamUtil {
1711
1711
  case "multiple":
1712
1712
  field_data = _.pick(field_data, ['choose_stream', 'skip_data', 'self_table', 'regex']);
1713
1713
  break;
1714
+ case "map":
1715
+ field_data = _.pick(field_data, ['range']);
1716
+ break;
1714
1717
  default:
1715
- field_data = null;
1718
+ field_data = {};
1716
1719
  break;
1717
1720
  }
1718
1721
  return field_data;
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
  }