Rename ErrCampaignNoScopeSources to ErrCampaignNoSourcesSelected

Align the sentinel name with the validation it represents.

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

Co-authored-by: Bryan FRIMIN <bryan@frimin.fr>
This commit is contained in:
Cursor Agent
2026-07-20 15:46:05 +00:00
parent 0870e1dd15
commit 1dcfa31dab
3 changed files with 3 additions and 3 deletions

View File

@@ -428,7 +428,7 @@ func (s *Service) StartCampaign(
}
if len(campaignSources) == 0 {
return ErrCampaignNoScopeSources
return ErrCampaignNoSourcesSelected
}
now := time.Now()

View File

@@ -23,7 +23,7 @@ package accessreview
import "errors"
var (
ErrCampaignNoScopeSources = errors.New("cannot start campaign: no scope sources configured")
ErrCampaignNoSourcesSelected = errors.New("cannot start campaign: no scope sources configured")
ErrCampaignNotDraft = errors.New("campaign must be in draft status")
ErrCampaignSourceOrganizationMismatch = errors.New("access source does not belong to the same organization")
)