@nger/fk-upload 1.0.185 → 1.0.186

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.
@@ -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
- Reflect.set(topic, 'topicName', topic.topicName);
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();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nger/fk-upload",
3
- "version": "1.0.185",
3
+ "version": "1.0.186",
4
4
  "description": "nger fk upload",
5
5
  "main": "dist/electon.js",
6
6
  "types": "dist/core.d.ts",