tradly 1.0.46 → 1.0.47

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/Roots/App.js +2 -2
  2. package/package.json +1 -1
package/Roots/App.js CHANGED
@@ -117,10 +117,10 @@ class App {
117
117
  }
118
118
  async getAccountDetail(param={id,slug,authKey}) {
119
119
  var path = ''
120
- if (id != undefined || id != '') {
120
+ if (param.id != undefined || param.id != '') {
121
121
  path = `/${param.id}`;
122
122
  }
123
- if (slug != undefined || slug != '') {
123
+ if (param.slug != undefined || param.slug != '') {
124
124
  path = SLUG +`${param.slug}`
125
125
  }
126
126
  try { const [error, responseJson] = await network.networkCall({path:ACCOUNTS + `${path}`,method:Method.GET,authKey:param.authKey});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tradly",
3
- "version": "1.0.46",
3
+ "version": "1.0.47",
4
4
  "description": "Tradly JS SDK",
5
5
  "main": "index.js",
6
6
  "type": "module",