From 62ff44540d8ccfcc803e53c75a49c3b3ce128fbb Mon Sep 17 00:00:00 2001 From: Dave Horton Date: Thu, 27 Jan 2022 10:55:32 -0500 Subject: [PATCH] more changes for wellsaid --- lib/utils/db-utils.js | 5 +++++ 1 file changed, 5 insertions(+) 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)); + } } }