Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

refactor: remove redundant get issue (#17494)

p0ny8a8e29c6a35d
diff --git a/backend/api/v1/plan_service.go b/backend/api/v1/plan_service.go
index 045b41b2ec..c3c82a8850 100644
--- a/backend/api/v1/plan_service.go
+++ b/backend/api/v1/plan_service.go
@@ -662,12 +662,6 @@ func (s *PlanService) UpdatePlan(ctx context.Context, request *connect.Request[v
}
if len(taskPatchList) != 0 {
- issue, err := s.store.GetIssueV2(ctx, &store.FindIssueMessage{
- PipelineID: oldPlan.PipelineUID,
- })
- if err != nil {
- return nil, connect.NewError(connect.CodeInternal, errors.Errorf("failed to get issue: %v", err))
- }
if issue != nil {
// Do not allow to update task if issue is done or canceled.
if issue.Status == storepb.Issue_DONE || issue.Status == storepb.Issue_CANCELED {