tasks: remove superfluous update code

This commit is contained in:
Girish Ramakrishnan
2021-09-23 17:39:59 -07:00
parent 8644a63919
commit 3090307c1d
2 changed files with 4 additions and 3 deletions

View File

@@ -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();