From e5821cddf8a459e3d4b8f8a87cc12c736288a547 Mon Sep 17 00:00:00 2001 From: Dave Horton Date: Thu, 27 Jan 2022 10:46:16 -0500 Subject: [PATCH] further fix for wellsaid tts --- lib/utils/db-utils.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/utils/db-utils.js b/lib/utils/db-utils.js index 4129cd90..e0fc3324 100644 --- a/lib/utils/db-utils.js +++ b/lib/utils/db-utils.js @@ -36,6 +36,10 @@ const speechMapper = (cred) => { obj.api_key = o.api_key; obj.region = o.region; } + else if ('wellsaid' === obj.vendor) { + const o = JSON.parse(decrypt(credential)); + obj.api_key = o.api_key; + } return obj; };