cce-unified-config
Advanced tools
Comparing version 0.9.2 to 0.9.3
@@ -163,5 +163,6 @@ const request = require('request-promise-native') | ||
// fetch next data set | ||
response = await axios.get(this.url + type.toLowerCase(), options) | ||
const response2 = await axios.get(this.url + type.toLowerCase(), options) | ||
const jsonData2 = (await parseXmlString(response2.data)).results | ||
// append data | ||
data = data.concat(jsonData[`${type}s`][`${type}`]) | ||
data = data.concat(jsonData2[`${type}s`][`${type}`]) | ||
} | ||
@@ -172,2 +173,3 @@ // all done, return data as an array | ||
} catch (e) { | ||
console.log(e.message) | ||
throw e | ||
@@ -174,0 +176,0 @@ } |
{ | ||
"name": "cce-unified-config", | ||
"version": "0.9.2", | ||
"version": "0.9.3", | ||
"description": "JavaScript library for Cisco Contact Center Enterprise APIs", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
14393
435