Files
service-finder/backend/app/api/v1/endpoints
Roo f2935cbd64 P0 HOTFIX: Subscription asset_limit calculation fix
Root cause: Old code used rules.get('max_vehicles') which only searched
JSONB root level. Corporate tiers store limits under rules['allowances'].

Changes:
1. Added _extract_limit() helper (3-level search: direct → allowances → limits)
2. Replaced single-sub .limit(1) with multi-sub .all() for true aggregation
3. Fixed fallback path to use _extract_limit() instead of rules.get()
4. Added clamping: asset_limit = max(asset_limit, 1) right before
   SubscriptionSummary creation on BOTH code paths
5. Added 'type' column to SubscriptionTier model (base vs addon)
2026-06-28 12:09:56 +00:00
..
2026-03-26 07:09:44 +00:00
2026-06-23 21:11:21 +00:00
2026-03-26 07:09:44 +00:00
2026-06-24 11:29:45 +00:00
2026-06-23 21:11:21 +00:00
2026-03-22 18:59:27 +00:00
2026-03-23 21:43:40 +00:00
2026-03-22 18:59:27 +00:00
2026-03-22 18:59:27 +00:00