Skip to content

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

chore: simplify list issues scan (#10011)

p0ny58456beab09e
diff --git a/backend/store/issue.go b/backend/store/issue.go
index 76e4f40a15..04f77bc36b 100644
--- a/backend/store/issue.go
+++ b/backend/store/issue.go
@@ -481,7 +481,6 @@ func (s *Store) ListIssueV2(ctx context.Context, find *FindIssueMessage) ([]*Iss
Payload: &storepb.IssuePayload{},
}
var payload []byte
- var pipelineUID sql.NullInt32
var subscriberUIDs pgtype.Int4Array
if err := rows.Scan(
&issue.UID,
@@ -490,7 +489,7 @@ func (s *Store) ListIssueV2(ctx context.Context, find *FindIssueMessage) ([]*Iss
&issue.updaterUID,
&issue.updatedTs,
&issue.projectUID,
- &pipelineUID,
+ &issue.PipelineUID,
&issue.PlanUID,
&issue.Title,
&issue.Status,
@@ -505,10 +504,6 @@ func (s *Store) ListIssueV2(ctx context.Context, find *FindIssueMessage) ([]*Iss
if err := subscriberUIDs.AssignTo(&issue.subscriberUIDs); err != nil {
return nil, err
}
- if pipelineUID.Valid {
- v := int(pipelineUID.Int32)
- issue.PipelineUID = &v
- }
if err := protojson.Unmarshal(payload, issue.Payload); err != nil {
return nil, errors.Wrapf(err, "failed to unmarshal issue payload")
}