@nger/fk-upload 1.0.118 → 1.0.121

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.
@@ -130,9 +130,6 @@ let FkService = class FkService {
130
130
  let index = task.index || 0;
131
131
  do {
132
132
  let start = index * task.splitSize;
133
- if (start >= max) {
134
- break;
135
- }
136
133
  let _end = start + task.splitSize - 1;
137
134
  let end = _end > max ? max : _end;
138
135
  if (end >= max) {
@@ -167,6 +164,7 @@ let FkService = class FkService {
167
164
  }).catch(async (e) => {
168
165
  throw e;
169
166
  });
167
+ console.log(`upload ----- `, { index, max, start, end, uploadResult });
170
168
  if (!uploadResult) {
171
169
  complete = true;
172
170
  index = 0;
@@ -69,6 +69,7 @@ class UploadTask extends rabbitmq_1.Task {
69
69
  return complete();
70
70
  }
71
71
  this.errorCount += 1;
72
+ console.log(`upload error ${this.errorCount}`, e);
72
73
  throw e;
73
74
  });
74
75
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nger/fk-upload",
3
- "version": "1.0.118",
3
+ "version": "1.0.121",
4
4
  "description": "",
5
5
  "main": "dist/core.js",
6
6
  "types": "dist/core.d.ts",