更新新建文件订阅

This commit is contained in:
whyour
2022-05-15 15:25:23 +08:00
parent f46b30498b
commit fdda732c4c
7 changed files with 344 additions and 84 deletions
+2 -1
View File
@@ -100,10 +100,11 @@ export default class SubscriptionService {
needCreate && this.scheduleService.createCronTask(doc as any);
} else {
this.scheduleService.cancelIntervalTask(doc as any);
const { type, value } = doc.interval_schedule as any;
needCreate &&
this.scheduleService.createIntervalTask(
doc as any,
doc.intervalSchedule as SimpleIntervalSchedule,
{ [type]: value } as SimpleIntervalSchedule,
);
}
}