@nger/fk-upload 1.0.157 → 1.0.158

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.
@@ -167,7 +167,7 @@ let TaskManageController = class TaskManageController {
167
167
  react_1.default.createElement("td", null, task.filename),
168
168
  react_1.default.createElement("td", null, getStatusTitle(task.status)),
169
169
  react_1.default.createElement("td", null,
170
- Math.round(100 * task.size / (1024 * 1024 * 1024)) / 100,
170
+ Math.ceil(100 * task.size / (1024 * 1024 * 1024)) / 100,
171
171
  "G"),
172
172
  react_1.default.createElement("td", null, task.isBigFile ? 'big' : 'small'),
173
173
  react_1.default.createElement("td", { id: task.filename + '-upload-url' },
@@ -32,7 +32,11 @@ class ScheduleTask extends rabbitmq_1.Task {
32
32
  const uniacids = uniAccounts.map(a => a.uniacid);
33
33
  const tasks = await db.manager.find(entities_1.FkDownloadTaskEntity, { select: ['topicId'] });
34
34
  const ids = tasks.map(task => task.topicId);
35
- const date = new Date('2022-05-10');
35
+ const now = new Date();
36
+ const year = now.getFullYear();
37
+ const month = now.getMonth();
38
+ const day = now.getDate();
39
+ const date = new Date(`${year}-${month}-${day}`);
36
40
  const nowTime = Math.floor(date.getTime() / 1000);
37
41
  const where = {
38
42
  uniacid: (0, typeorm_2.In)(uniacids),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nger/fk-upload",
3
- "version": "1.0.157",
3
+ "version": "1.0.158",
4
4
  "description": "",
5
5
  "main": "dist/core.js",
6
6
  "types": "dist/core.d.ts",