tasks: remove the prefix for invokation lookup
This commit is contained in:
+1
-1
@@ -109,7 +109,7 @@ async function main() {
|
||||
|
||||
try {
|
||||
debug(`Running task of type ${task.type}`);
|
||||
const [runError, result] = await safe(TASKS[task.type].apply(null, task.args.concat(progressCallback)));
|
||||
const [runError, result] = await safe(TASKS[task.type.replace(/_.*/,'')].apply(null, task.args.concat(progressCallback)));
|
||||
const progress = {
|
||||
result: result || null,
|
||||
error: runError ? JSON.parse(JSON.stringify(runError, Object.getOwnPropertyNames(runError))) : null,
|
||||
|
||||
Reference in New Issue
Block a user