groupcore-utils 1.2.2 → 1.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.
Files changed (2) hide show
  1. package/Utils.js +1 -2
  2. package/package.json +1 -1
package/Utils.js CHANGED
@@ -119,7 +119,6 @@ class Utils {
119
119
  * @returns {Object.<{error: string}>|Promise.<Object>} - Returns an error or a promise that resolves to an object
120
120
  */
121
121
  async getGroupInventory({ groupId }) {
122
- console.log('group id', groupId);
123
122
  if (_isUndefined(groupId)) {
124
123
  return { error: 'Missing some required params' };
125
124
  }
@@ -133,7 +132,7 @@ class Utils {
133
132
  },
134
133
  });
135
134
 
136
- return response[0];
135
+ return response.data[0];
137
136
  } catch (e) {
138
137
  return { error: 'API error' };
139
138
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "groupcore-utils",
3
- "version": "1.2.2",
3
+ "version": "1.2.3",
4
4
  "description": "Utilities for working with some Core features",
5
5
  "main": "Utils.js",
6
6
  "scripts": {