tasks: remove the prefix for invokation lookup

This commit is contained in:
Girish Ramakrishnan
2025-07-18 14:33:26 +02:00
parent 47580c6976
commit c10593e4ac
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -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,