2 Commits

Author SHA1 Message Date
Benjamin Admin bc020e9f64 Merge branch 'main' of ssh://gitea.meghsakha.com:22222/Benjamin_Boenisch/breakpilot-core
Build pitch-deck / build-push-deploy (push) Successful in 1m9s
CI / go-lint (push) Has been skipped
CI / python-lint (push) Has been skipped
CI / nodejs-lint (push) Has been skipped
CI / test-go-consent (push) Successful in 36s
CI / test-python-voice (push) Successful in 34s
CI / test-bqas (push) Successful in 33s
2026-04-17 08:36:07 +02:00
Benjamin Admin bad4659d5b fix(pitch-deck): include fm_scenarios in preview-data API response
The admin preview was not returning fm_scenarios/fm_assumptions,
so preferredScenarioId was always null and all financial slides
fell back to Base Case (1M) instead of the version's scenario.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-17 08:35:22 +02:00
@@ -49,6 +49,8 @@ export async function GET(request: NextRequest, ctx: Ctx) {
metrics: map.metrics || [], metrics: map.metrics || [],
funding: (map.funding || [])[0] || null, funding: (map.funding || [])[0] || null,
products: map.products || [], products: map.products || [],
fm_scenarios: map.fm_scenarios || [],
fm_assumptions: map.fm_assumptions || [],
_version: { name: ver.rows[0].name, status: ver.rows[0].status }, _version: { name: ver.rows[0].name, status: ver.rows[0].status },
}) })
} }