@nger/fk-upload 1.0.61 → 1.0.62
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -161,7 +161,7 @@ let FkService = class FkService {
|
|
161
161
|
task.uploadUrl = fullUrl;
|
162
162
|
}
|
163
163
|
}
|
164
|
-
console.log(`uploading ${index / task.totalChunks}
|
164
|
+
console.log(`uploading ${Math.floor((index + 1 / task.totalChunks) * 100)}%`);
|
165
165
|
index = index + 1;
|
166
166
|
} while (!complete);
|
167
167
|
// upload complete
|
@@ -27,8 +27,8 @@ class UploadTask extends rabbitmq_1.Task {
|
|
27
27
|
// create effect task
|
28
28
|
await db.manager.update(entities_1.FkDownloadTaskEntity, task.filename, { status: 2, uploadUrl: task.uploadUrl, uploadSize: task.total, uploadStatus: 1 });
|
29
29
|
const effectTask = await taskService.createEffectTask(task.filename, task.uploadUrl, task.topicId, task.path);
|
30
|
-
return manager.send(effectTask).then(() => complete())
|
31
|
-
})
|
30
|
+
return manager.send(effectTask).then(() => complete());
|
31
|
+
});
|
32
32
|
if (next)
|
33
33
|
await next();
|
34
34
|
}
|