From 5c1501b6c750fde17b2f6e9592d8d1b397f64b8b Mon Sep 17 00:00:00 2001 From: akirilyuk Date: Tue, 1 Feb 2022 15:29:32 +0100 Subject: [PATCH] return created gather config --- lib/tasks/cognigy/speech-config.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/tasks/cognigy/speech-config.js b/lib/tasks/cognigy/speech-config.js index 74f5a0ee..55da0eeb 100644 --- a/lib/tasks/cognigy/speech-config.js +++ b/lib/tasks/cognigy/speech-config.js @@ -98,9 +98,7 @@ class SpeechConfig extends Emitter { }else if(playConfig){ config.play = playConfig; } - return textPrompt ? - {...final, say: sayConfig} : - {...final, play: playConfig}; + return config; } }