EMsnap commented on code in PR #10445:
URL: https://github.com/apache/inlong/pull/10445#discussion_r1644363793
##########
inlong-manager/manager-web/src/main/java/org/apache/inlong/manager/web/controller/InLongSchedulerController.java:
##########
@@ -45,35 +45,35 @@
public class InLongSchedulerController {
@Autowired
- private ScheduleService scheduleService;
+ private ScheduleOperator scheduleOperator;
@RequestMapping(value = "/schedule/save", method = RequestMethod.POST)
@OperationLog(operation = OperationType.CREATE, operationTarget =
OperationTarget.SCHEDULE)
@ApiOperation(value = "Save schedule info")
public Response<Integer> save(@RequestBody ScheduleInfoRequest request) {
- int result = scheduleService.save(request,
LoginUserUtils.getLoginUser().getName());
+ int result = scheduleOperator.saveOpt(request,
LoginUserUtils.getLoginUser().getName());
Review Comment:
maybe result -> scheduleInfoId is better or infoId , just to make it more
clear
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]