@nger/fk-upload 1.0.208 → 1.0.211
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.
@@ -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 {
|
package/dist/tasks/check-task.js
CHANGED
@@ -38,7 +38,7 @@ class CheckTask extends rabbitmq_1.Task {
|
|
38
38
|
complete();
|
39
39
|
return next && next();
|
40
40
|
}
|
41
|
-
if (check.status === '
|
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({
|
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');
|