修复定时任务/视图/环境变量更新逻辑

This commit is contained in:
whyour
2023-02-24 23:21:08 +08:00
parent 697bcb5922
commit e1e6261b4f
3 changed files with 12 additions and 8 deletions
+1 -1
View File
@@ -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;
}