admin_users_personels
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user