@nger/fk-upload 1.0.215 → 1.0.216
Sign up to get free protection for your applications and to get access to all the features.
@@ -109,9 +109,8 @@ class DownloadTask extends rabbitmq_1.Task {
|
|
109
109
|
const headers = resp.headers;
|
110
110
|
total = Number(headers["content-length"]);
|
111
111
|
if (total > 1024 * 1024 * 1024) {
|
112
|
-
sub.error(new Error(`文件超出1G`));
|
113
|
-
await _defer;
|
114
112
|
await db.manager.update(download_task_1.FkDownloadTask, download.id, { isBigFile: true, desc: '文件超出1G', status: `6` });
|
113
|
+
sub.error(new Error(`文件超出1G`));
|
115
114
|
return;
|
116
115
|
}
|
117
116
|
const useSize = download.w7Account.fkAccount.usedSize + total;
|