fix patch gateway feat/phase-2g-bundle
AI Agent git-import/068377df · 112 days ago · Apr 5, 2026 · Diff

fix(gateway): add POST /api/v1/settings/consolidation for hosted mode

Fixes "Not found" error when saving consolidation settings in hosted Hub.

- Add `mode` field to buildConsolSettingsPayload so gateway can distinguish 'hosted' from 'off' (both send enabled=false to self-hosted endpoint) - Add POST /api/v1/settings/consolidation to gateway: saves consolidation_enabled, consolidation_interval_minutes, and consolidation_passes to billing store - Update GET /api/v1/settings gateway to return user's actual stored prefs (interval, passes, hosted_enabled) instead of hardcoded defaults - Add consolidation_passes field to normalizeBillingUser + defaultUserRecord (default: consolidate=true, verify=true, discover=false) - Pass user.consolidation_passes to bridge in consolidation-scheduler - Add 5 new tests for billing store + payload mode field (1082 passing)

sha256:6e6c67360c6a4439dd8b1e5675cbb33973283df25dae7458a8ee143c89a2111b sha
sha256:5c0c1ff82da84f0576b45d66170ccb3044cbbf01dccad7b5aed0017d5fa6a9d7 snapshot
← Older Oldest on feat/phase-2g-bundle
All commits
Newer → Latest on feat/phase-2g-bundle

0 comments

No comments yet. Be the first to start the discussion.

To add a comment, use the Muse CLI: muse hub commit comment sha256:6e6c67360c6a4439dd8b1e5675cbb33973283df25dae7458a8ee143c89a2111b --body "your comment"