@nger/fk-upload 1.0.50 → 1.0.51
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.
@@ -73,7 +73,7 @@ class DownloadTask extends rabbitmq_1.Task {
|
|
73
73
|
}
|
74
74
|
async createUploadTask(download, total, md5, injector) {
|
75
75
|
const db = injector.get(typeorm_1.Db);
|
76
|
-
await db.manager.update(entities_1.FkDownloadTaskEntity, download.filename, { totalSize: total, status: 1, size: total });
|
76
|
+
await db.manager.update(entities_1.FkDownloadTaskEntity, download.filename, { totalSize: total, fileMd5: md5, status: 1, size: total });
|
77
77
|
const fk = injector.get(fk_service_1.FkService);
|
78
78
|
const info = await fk.getUploadInfo(download.loginId, download.filename, md5, total);
|
79
79
|
if (info) {
|