Apply suggestion from @Copilot

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
Ine
2026-02-20 16:37:18 +01:00
committed by GitHub
parent bb059ad8d8
commit 8171e76ec8

View File

@@ -54,7 +54,7 @@ func (s *BeadsService) DeleteIssues() error {
}
func (s *BeadsService) GetComments(ctx context.Context, issueID string) ([]models.Comment, error) {
query := `SELECT id, issue_id, author, text, created_at FROM comments WHERE issue_id = ? ORDER BY created_at ASC`
query := `SELECT id, issue_id, author, text, created_at FROM comments WHERE issue_id = ? ORDER BY created_at ASC LIMIT 100`
rows, err := s.UnderlyingDB().QueryContext(ctx, query, issueID)
if err != nil {