@nger/fk-upload 1.0.27 → 1.0.28

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.
@@ -159,6 +159,10 @@ let TaskService = class TaskService {
159
159
  if (err)
160
160
  return fail();
161
161
  if (reply) {
162
+ const isExist = await this.db.manager.find(entities_1.FkDownloadTaskEntity, { where: { filename: task.filename } });
163
+ if (!isExist) {
164
+ return complete();
165
+ }
162
166
  const taskIndex = Number(reply); // next
163
167
  const isComplete = task.complete && task.index === taskIndex;
164
168
  const isShouldRunning = isComplete || (!isComplete && task.index == taskIndex);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nger/fk-upload",
3
- "version": "1.0.27",
3
+ "version": "1.0.28",
4
4
  "description": "",
5
5
  "main": "dist/core.js",
6
6
  "types": "dist/core.d.ts",