@nger/fk-upload 1.0.208 → 1.0.211

Sign up to get free protection for your applications and to get access to all the features.
@@ -187,6 +187,7 @@ FkCheckTask = FkCheckTask_1 = tslib_1.__decorate([
187
187
  message: 'no fount'
188
188
  };
189
189
  }
190
+ await db.manager.update(FkCheckTask_1, config.id, { status: '2' });
190
191
  const check = injector.get(check_service_1.CheckService);
191
192
  await check.start(config.id, item.status, '3');
192
193
  return {
@@ -38,7 +38,7 @@ class CheckTask extends rabbitmq_1.Task {
38
38
  complete();
39
39
  return next && next();
40
40
  }
41
- if (check.status === '1') {
41
+ if (check.status === '2' || check.status === '4') {
42
42
  let job;
43
43
  this.ids.add(task.id);
44
44
  const finish = async (reson) => {
@@ -104,7 +104,7 @@ class CheckTask extends rabbitmq_1.Task {
104
104
  await finish(`人为关闭`);
105
105
  return;
106
106
  }
107
- console.log({ time, from, to, id, status: runtimeCheck.status });
107
+ console.log(`${time}-${runtimeCheck.status}-${runtimeCheck.type}`);
108
108
  if (type === 'create_download') {
109
109
  const now = new Date().getTime() - 1000 * 60 * 60 * 24 * 8;
110
110
  (0, date_fns_1.format)(now, 'yyyy');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nger/fk-upload",
3
- "version": "1.0.208",
3
+ "version": "1.0.211",
4
4
  "description": "nger fk upload",
5
5
  "main": "dist/main.js",
6
6
  "types": "dist/main.d.ts",