Skip to content

Commit

Permalink
#000 | telemetry fixes added
Browse files Browse the repository at this point in the history
  • Loading branch information
kumarks1122 committed Feb 7, 2024
1 parent f65d77f commit add9b41
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions nodejs/voice-streaming/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@ function getDayOfYear(date) {
}

async function getAudio(audioKey) {
// const urlData = process.env.IVRS_CONFIG_URL;
const urlData = "https://objectstorage.ap-hyderabad-1.oraclecloud.com/n/ax2cel5zyviy/b/sbdjp-ivrs/o/audio/ivrs_config.json"
const urlData = process.env.IVRS_CONFIG_URL;

try {
getDayOfYear(new Date())
Expand Down
4 changes: 2 additions & 2 deletions nodejs/voice-streaming/telemetry.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,10 @@ module.exports = class Telemetry {
axios.post(process.env.TELEMETRY_API_URL, { "events": this.events }, {"headers":{"Content-Type":"application/json"}})
.then(function (response) {
telemetry_synced = true;
console.log(response);
console.log(`${this.session_id} :: telemetry sync success`)
})
.catch(function (error) {
console.log(error);
console.log(`${this.session_id} :: telemetry sync failed`)
});
}

Expand Down

0 comments on commit add9b41

Please sign in to comment.