fix(接口测试): 删除场景定时任务报错

--bug=1038851 --user=陈建星 【接口测试】场景-场景列表设置一个场景开启定时任务-再删除该任务提示异常 https://www.tapd.cn/55049933/s/1492021
This commit is contained in:
AgAngle 2024-04-09 17:23:28 +08:00 committed by 刘瑞斌
parent 89a21efd43
commit 5d19b38c61
1 changed files with 1 additions and 1 deletions

View File

@ -215,7 +215,7 @@ public class ApiScenarioController {
@Operation(summary = "接口测试-接口场景管理-删除定时任务配置")
@RequiresPermissions(PermissionConstants.PROJECT_API_SCENARIO_EXECUTE)
@Log(type = OperationLogType.UPDATE, expression = "#msClass.scheduleLog(#request.getScenarioId())", msClass = ApiScenarioLogService.class)
@CheckOwner(resourceId = "#request.getScenarioId()", resourceType = "api_scenario")
@CheckOwner(resourceId = "#scenarioId", resourceType = "api_scenario")
@SendNotice(taskType = NoticeConstants.TaskType.SCHEDULE_TASK, event = NoticeConstants.Event.UPDATE, target = "#targetClass.getScheduleNotice(#request)", targetClass = ApiScenarioNoticeService.class)
public void deleteScheduleConfig(@PathVariable String scenarioId) {
apiValidateService.validateApiMenuInProject(scenarioId, ApiResource.API_SCENARIO.name());