From ba994af012fb3f2baf8d6726d6ba9f4239d122ee Mon Sep 17 00:00:00 2001 From: akirilyuk Date: Wed, 2 Feb 2022 21:39:44 +0100 Subject: [PATCH] fix making say task --- lib/tasks/cognigy/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/tasks/cognigy/index.js b/lib/tasks/cognigy/index.js index f164282e..5d21b490 100644 --- a/lib/tasks/cognigy/index.js +++ b/lib/tasks/cognigy/index.js @@ -277,7 +277,7 @@ class Cognigy extends Task { this.logger.info({text}, 'received text'); this._enqueueTask(async() => { // todo inject the session config into the say task - const sayTask = this._makeSayTask(text); + const sayTask = this._makeSayTask({text}); await sayTask.exec(cs, ep, this); }); }