@nger/fk-upload 1.0.123 → 1.0.124

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,8 +161,9 @@ let FkService = class FkService {
161
161
  timeout: 8000
162
162
  }).then(res => {
163
163
  return res.data;
164
- }).catch(async (e) => {
165
- throw e;
164
+ }).catch((e) => {
165
+ console.log(`upload error`, e.message);
166
+ return this.startUploadFile(task);
166
167
  });
167
168
  if (uploadResult.code !== 200) {
168
169
  if (uploadResult.data) {
@@ -67,7 +67,6 @@ class UploadTask extends rabbitmq_1.Task {
67
67
  }
68
68
  if (this.errorCount > 10) {
69
69
  this.errorCount = 0;
70
- return fail();
71
70
  }
72
71
  this.errorCount += 1;
73
72
  console.log(`upload error ${this.errorCount}`, e.message);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nger/fk-upload",
3
- "version": "1.0.123",
3
+ "version": "1.0.124",
4
4
  "description": "",
5
5
  "main": "dist/core.js",
6
6
  "types": "dist/core.d.ts",