Skip to content

Commit

Permalink
Merge pull request #2490 from hLinx/hotfix_master
Browse files Browse the repository at this point in the history
fix: 新建定时任务请求接口错误 #2489
  • Loading branch information
hLinx authored Oct 9, 2023
2 parents 318f827 + c8da026 commit eb95b1c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/frontend/src/domain/source/cron-job.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ class CronJob extends ModuleBase {
});
}

// // 删除定时任务
// 删除定时任务
deleteDataById({ id }) {
return Request.delete(`${this.path}/cron/job/${id}`);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -675,7 +675,9 @@
if (params.endTime) {
params.endTime = new Date(params.endTime).getTime() / 1000;
}
return CronJobService.update({

const requestHandler = params.id ? CronJobService.update : CronJobService.create;
return requestHandler({
...params,
variableValue: variableList,
}).then(() => {
Expand Down

0 comments on commit eb95b1c

Please sign in to comment.