admin_users_personels

This commit is contained in:
Roo
2026-06-29 14:11:15 +00:00
parent 383e5511b6
commit df4a0f07ff
237 changed files with 17849 additions and 2934 deletions

View File

@@ -229,6 +229,7 @@ async def create_package(
tier = SubscriptionTier(
name=payload.name,
type=payload.type,
rules=rules_dict,
is_custom=payload.is_custom,
tier_level=payload.tier_level,
@@ -309,6 +310,9 @@ async def update_package(
)
tier.name = update_data["name"]
if "type" in update_data and update_data["type"] is not None:
tier.type = update_data["type"]
if "rules" in update_data and update_data["rules"] is not None:
# ── P0 CRITICAL FIX: Deep merge instead of wholesale replace ──
# Previously: tier.rules = new_rules (wholesale replacement)