Remove pending entry count field

Signed-off-by: Cursor Agent <cursoragent@cursor.com>

Co-authored-by: Bryan FRIMIN <bryan@frimin.fr>
This commit is contained in:
Cursor Agent
2026-06-30 09:02:28 +00:00
committed by Bryan Frimin
parent ba2a47d262
commit 9c09562918
3 changed files with 0 additions and 46 deletions

View File

@@ -378,33 +378,6 @@ func (s *Service) CountEntriesForCampaignIDAndSourceID(
return count, nil
}
func (s *Service) CountPendingEntriesForCampaignID(
ctx context.Context,
scope coredata.Scoper,
campaignID gid.GID,
) (int, error) {
var count int
err := s.pg.WithConn(
ctx,
func(ctx context.Context, conn pg.Querier) (err error) {
entries := coredata.AccessReviewEntries{}
count, err = entries.CountPendingByCampaignID(ctx, conn, scope, campaignID)
if err != nil {
return fmt.Errorf("cannot count pending access entries: %w", err)
}
return nil
},
)
if err != nil {
return 0, err
}
return count, nil
}
func (s *Service) EntryDecisionHistory(
ctx context.Context,
scope coredata.Scoper,