If we have an app task, start with 5% progress
This commit is contained in:
@@ -122,7 +122,7 @@ function create() {
|
||||
} else {
|
||||
const task = await getTask(app.id);
|
||||
if (task) {
|
||||
app.progress = task.percent;
|
||||
app.progress = task.percent || 5; // avoid starting with empty
|
||||
app.message = task.message;
|
||||
app.taskMinutesActive = moment.duration(moment.utc().diff(moment.utc(task.creationTime))).asMinutes();
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user