make percent non-zero

This commit is contained in:
Girish Ramakrishnan
2019-12-18 09:33:44 -08:00
parent ca4fdc1be8
commit 887cbb0b22
3 changed files with 4 additions and 4 deletions

View File

@@ -125,7 +125,7 @@ function add(type, args, callback) {
assert(Array.isArray(args));
assert.strictEqual(typeof callback, 'function');
taskdb.add({ type: type, percent: 0, message: 'Queued', args: args }, function (error, taskId) {
taskdb.add({ type: type, percent: 1, message: 'Queued', args: args }, function (error, taskId) {
if (error) return callback(error);
callback(null, taskId);