diff --git a/lib/utils/db-utils.js b/lib/utils/db-utils.js index e0fc3324..c9febfd1 100644 --- a/lib/utils/db-utils.js +++ b/lib/utils/db-utils.js @@ -57,6 +57,7 @@ module.exports = (logger, srf) => { const haveGoogle = speech.find((s) => s.vendor === 'google'); const haveAws = speech.find((s) => s.vendor === 'aws'); const haveMicrosoft = speech.find((s) => s.vendor === 'microsoft'); + const haveWellsaid = speech.find((s) => s.vendor === 'wellsaid'); if (!haveGoogle || !haveAws || !haveMicrosoft) { const [r3] = await pp.query(sqlSpeechCredentialsForSP, account_sid); if (r3.length) { @@ -72,6 +73,10 @@ module.exports = (logger, srf) => { const ms = r3.find((s) => s.vendor === 'microsoft'); if (ms) speech.push(speechMapper(ms)); } + if (!haveWellsaid) { + const wellsaid = r3.find((s) => s.vendor === 'wellsaid'); + if (wellsaid) speech.push(speechMapper(wellsaid)); + } } }