@nger/fk-upload 1.0.132 → 1.0.133

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.
@@ -18,9 +18,9 @@ class EffectTask extends rabbitmq_1.Task {
18
18
  const manager = injector.get(rabbitmq_1.TaskManager);
19
19
  console.log(`effect`, task.filename);
20
20
  try {
21
+ const item = await db.manager.findOne(entities_1.FkDownloadTaskEntity, { where: { filename: task.filename } });
21
22
  if (task.uploadUrl.startsWith('https://site')) {
22
23
  // redownload
23
- const item = await db.manager.findOne(entities_1.FkDownloadTaskEntity, { where: { filename: task.filename } });
24
24
  if (item) {
25
25
  const download = {
26
26
  filename: item.filename,
@@ -45,7 +45,7 @@ class EffectTask extends rabbitmq_1.Task {
45
45
  await (0, fs_extra_1.unlink)(task.path);
46
46
  }
47
47
  catch (e) { }
48
- await w7.manager.update(w7_1.W7ChatTopicEntity, task.topicId, { topicStyle: 7, foreverUrl: task.uploadUrl });
48
+ await w7.manager.update(w7_1.W7ChatTopicEntity, task.topicId, { topicStyle: 7, thirdUrl: item.url, foreverUrl: task.uploadUrl });
49
49
  await complete();
50
50
  }
51
51
  else {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nger/fk-upload",
3
- "version": "1.0.132",
3
+ "version": "1.0.133",
4
4
  "description": "",
5
5
  "main": "dist/core.js",
6
6
  "types": "dist/core.d.ts",