tasks: remove superfluous update code
This commit is contained in:
@@ -88,9 +88,6 @@ async.series([
|
||||
if (getError) return exitSync({ error: getError, code: 50 });
|
||||
if (!task) return exitSync({ error: new Error(`Task ${taskId} not found`), code: 50 });
|
||||
|
||||
const [updateError] = await safe(tasks.update(taskId, { percent: 2, error: null }));
|
||||
if (updateError) return exitSync({ error: updateError, code: 50 });
|
||||
|
||||
const progressCallback = async function (progress, callback) {
|
||||
await safe(tasks.update(taskId, progress), { debug });
|
||||
if (callback) callback();
|
||||
|
||||
Reference in New Issue
Block a user