Skip to content

Drop unused accountId placeholder in CampaignController - #19

Merged
op-techy merged 1 commit into
mainfrom
chore/remove-stale-account-todo
Dec 4, 2026
Merged

op-techy merged 1 commit into
mainfrom
chore/remove-stale-account-todo

Conversation

@op-techy

@op-techy op-techy commented Dec 4, 2026

Copy link
Copy Markdown
Owner

Removes Long accountId = 1L; // TODO: replace with authenticated user's account once auth is wired from CampaignController.getCampaigns.

The TODO is out of date, for three reasons:

  • Auth is already wired. SecurityConfig requires a role on every /api/** route, and JwtAuthFilter sets the authenticated User.
  • There's no account to scope by. This is a single-organisation install with no account_id anywhere in the schema.
  • The variable was never used. campaignService.getCampaigns(status, pageable) doesn't take it.

No behaviour change.

@op-techy
op-techy merged commit dd9ba4a into main Dec 4, 2026
2 checks passed
@op-techy
op-techy deleted the chore/remove-stale-account-todo branch December 4, 2026 02:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant