Skip to content

fix: ownerOnly middleware for card-database sync#147

Merged
Pyronewbic merged 2 commits into
mainfrom
dev
May 25, 2026
Merged

fix: ownerOnly middleware for card-database sync#147
Pyronewbic merged 2 commits into
mainfrom
dev

Conversation

@Pyronewbic
Copy link
Copy Markdown
Owner

Summary

  • Fix sync endpoint using wrong auth middleware (apiAuthMiddleware + req.authTier check that was never set)
  • Use existing ownerOnly middleware instead

Test plan

  • Unit tests pass (311/311)
  • POST /api/card-database/sync?force=true with owner key triggers rebuild

@Pyronewbic Pyronewbic closed this May 25, 2026
@Pyronewbic Pyronewbic reopened this May 25, 2026
@Pyronewbic Pyronewbic merged commit b2d40a4 into main May 25, 2026
10 checks passed
@Pyronewbic Pyronewbic deleted the dev branch May 25, 2026 14:43
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