@nger/fk-upload 1.0.60 → 1.0.61

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.
@@ -19,6 +19,10 @@ class UploadTask extends rabbitmq_1.Task {
19
19
  const taskService = injector.get(task_service_1.TaskService);
20
20
  const manager = injector.get(rabbitmq_1.TaskManager);
21
21
  const db = injector.get(typeorm_1.Db);
22
+ // > 1G give up
23
+ if (task.total >= 1024 * 1024 * 1024) {
24
+ complete();
25
+ }
22
26
  await fk.startUploadFile(task).then(async (res) => {
23
27
  // create effect task
24
28
  await db.manager.update(entities_1.FkDownloadTaskEntity, task.filename, { status: 2, uploadUrl: task.uploadUrl, uploadSize: task.total, uploadStatus: 1 });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nger/fk-upload",
3
- "version": "1.0.60",
3
+ "version": "1.0.61",
4
4
  "description": "",
5
5
  "main": "dist/core.js",
6
6
  "types": "dist/core.d.ts",