@nger/fk-upload 1.0.193 → 1.0.194
Sign up to get free protection for your applications and to get access to all the features.
@@ -270,12 +270,10 @@ let TaskManageController = class TaskManageController {
|
|
270
270
|
async finishTask(filename, callback, ctx) {
|
271
271
|
if (filename) {
|
272
272
|
const item = this.db.manager.findOne(entities_1.FkDownloadTaskEntity, { where: { filename } });
|
273
|
+
console.log({ filename, callback });
|
273
274
|
if (item) {
|
274
275
|
await this.db.manager.update(entities_1.FkDownloadTaskEntity, filename, { status: 3 });
|
275
276
|
}
|
276
|
-
else {
|
277
|
-
console.log({ filename, callback });
|
278
|
-
}
|
279
277
|
}
|
280
278
|
ctx.redirect(callback);
|
281
279
|
}
|