fix making say task

This commit is contained in:
akirilyuk
2022-02-02 21:39:44 +01:00
parent e579514321
commit ba994af012

View File

@@ -277,7 +277,7 @@ class Cognigy extends Task {
this.logger.info({text}, 'received text'); this.logger.info({text}, 'received text');
this._enqueueTask(async() => { this._enqueueTask(async() => {
// todo inject the session config into the say task // 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); await sayTask.exec(cs, ep, this);
}); });
} }