From 65b04d7cbfd8b107787adebdd066345fbc0f44e1 Mon Sep 17 00:00:00 2001 From: akirilyuk Date: Tue, 1 Feb 2022 15:25:51 +0100 Subject: [PATCH] add default value --- 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 44050d0d..74d21b0a 100644 --- a/lib/tasks/cognigy/index.js +++ b/lib/tasks/cognigy/index.js @@ -174,7 +174,7 @@ class Cognigy extends Task { this.notifyTaskDone(); } - _makeGatherTask({textPrompt, urlPrompt}) { + _makeGatherTask({textPrompt, urlPrompt} = {}) { const config = this.config.makeGatherTaskConfig({textPrompt, urlPrompt}); const {retry, ...rest} = config; this.retry = retry;