mirror of
https://github.com/whyour/qinglong.git
synced 2026-07-01 04:40:38 +08:00
修复定时任务/视图/环境变量更新逻辑
This commit is contained in:
@@ -31,7 +31,7 @@ export default class CronViewService {
|
||||
}
|
||||
|
||||
public async update(payload: CrontabView): Promise<CrontabView> {
|
||||
const newDoc = await this.updateDb(payload);
|
||||
const newDoc = await this.updateDb(new CrontabView(payload));
|
||||
return newDoc;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user