@nger/fk-upload 1.0.116 → 1.0.117

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.
@@ -50,7 +50,8 @@ class UploadTask extends rabbitmq_1.Task {
50
50
  await complete();
51
51
  return next && next();
52
52
  }
53
- if (old.status === 1) {
53
+ console.log(`receive upload task`, task.filename);
54
+ if (old.status == 1) {
54
55
  // upload
55
56
  await fk.startUploadFile(task).then(async (res) => {
56
57
  // create effect task
@@ -65,7 +66,7 @@ class UploadTask extends rabbitmq_1.Task {
65
66
  }
66
67
  if (this.errorCount > 10) {
67
68
  this.errorCount = 0;
68
- return await complete();
69
+ return complete();
69
70
  }
70
71
  this.errorCount += 1;
71
72
  throw e;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nger/fk-upload",
3
- "version": "1.0.116",
3
+ "version": "1.0.117",
4
4
  "description": "",
5
5
  "main": "dist/core.js",
6
6
  "types": "dist/core.d.ts",