Skip to content

Commit

Permalink
fix: 删除不包含执行方案的作业模版,会生成一条不合法的删除执行方案审计事件 TencentBlueKing#2558
Browse files Browse the repository at this point in the history
  • Loading branch information
wangyu096 committed Oct 27, 2023
1 parent fada442 commit bdab9f6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -608,8 +608,8 @@ public TaskTemplateInfoDTO deleteTaskTemplate(String username, Long appId, Long
}
}
}
taskPlanService.deleteTaskPlanByTemplate(appId, templateId);
}
taskPlanService.deleteTaskPlanByTemplate(appId, templateId);
taskTemplateDAO.deleteTaskTemplateById(appId, templateId);
tagService.batchDeleteResourceTags(appId, JobResourceTypeEnum.TEMPLATE.getValue(), String.valueOf(templateId));
return template;
Expand Down

0 comments on commit bdab9f6

Please sign in to comment.