mirror of
https://github.com/whyour/qinglong.git
synced 2026-12-01 09:45:36 +08:00
更新新建文件订阅
This commit is contained in:
1 parent
5523d537dc
commit
f6a122e5ea
7 files changed
+344
-84
No files matched your search
@@ -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,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user