add default value

This commit is contained in:
akirilyuk
2022-02-01 15:25:51 +01:00
parent 8a641f1d9a
commit 65b04d7cbf

View File

@@ -174,7 +174,7 @@ class Cognigy extends Task {
this.notifyTaskDone(); this.notifyTaskDone();
} }
_makeGatherTask({textPrompt, urlPrompt}) { _makeGatherTask({textPrompt, urlPrompt} = {}) {
const config = this.config.makeGatherTaskConfig({textPrompt, urlPrompt}); const config = this.config.makeGatherTaskConfig({textPrompt, urlPrompt});
const {retry, ...rest} = config; const {retry, ...rest} = config;
this.retry = retry; this.retry = retry;