@nger/fk-upload 1.0.10 → 1.0.11
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.
@@ -252,6 +252,7 @@ let TaskService = class TaskService {
|
|
252
252
|
obs.subscribe({
|
253
253
|
next: async ([data, complete, fail]) => {
|
254
254
|
const task = JSON.parse(data);
|
255
|
+
console.log(task);
|
255
256
|
const download = await this.db.manager.findOne(entities_1.FkDownloadTaskEntity, { where: { filename: task.filename } });
|
256
257
|
if (download) {
|
257
258
|
let total = 0;
|
@@ -284,6 +285,9 @@ let TaskService = class TaskService {
|
|
284
285
|
}
|
285
286
|
});
|
286
287
|
}
|
288
|
+
else {
|
289
|
+
complete();
|
290
|
+
}
|
287
291
|
}
|
288
292
|
});
|
289
293
|
}
|
@@ -385,7 +389,6 @@ let TaskService = class TaskService {
|
|
385
389
|
}
|
386
390
|
}
|
387
391
|
download(task) {
|
388
|
-
console.log(`download ${task.url}`);
|
389
392
|
return new rxjs_1.Observable((sub) => {
|
390
393
|
// go on
|
391
394
|
task.size = 0;
|