@nger/fk-upload 1.0.185 → 1.0.186
Sign up to get free protection for your applications and to get access to all the features.
@@ -104,7 +104,9 @@ let TaskManageController = class TaskManageController {
|
|
104
104
|
const tasks = await this.db.manager.find(entities_1.FkDownloadTaskEntity, { where, order: { createDate: "DESC" }, take, skip });
|
105
105
|
await Promise.all(tasks.map(async (task) => {
|
106
106
|
const topic = await this.w7.manager.findOne(w7_1.W7ChatTopicEntity, { where: { id: task.topicId } });
|
107
|
-
|
107
|
+
if (topic) {
|
108
|
+
Reflect.set(topic, 'topicName', topic.topicName);
|
109
|
+
}
|
108
110
|
}));
|
109
111
|
const count = await this.db.manager.count(entities_1.FkDownloadTaskEntity, { where });
|
110
112
|
// const downloadSize = await this.db.manager.find();
|