Files
service-finder/backend/app
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-06-23 21:11:21 +00:00
2026-03-22 11:02:05 +00:00
2026-03-13 10:22:41 +00:00
2026-06-04 07:26:22 +00:00