Add subcription feature 3
This commit is contained in:
@@ -57,7 +57,7 @@ class SubscriptionServiceClient:
|
||||
'features': subscription.features or {}
|
||||
}
|
||||
except Exception as e:
|
||||
logger.error("Failed to get subscription", tenant_id=tenant_id, error=str(e))
|
||||
logger.error(f"Failed to get subscription, tenant_id={tenant_id}, error={str(e)}")
|
||||
raise
|
||||
|
||||
async def update_subscription_plan(self, tenant_id: str, new_plan: str) -> Dict[str, Any]:
|
||||
@@ -93,7 +93,7 @@ class SubscriptionServiceClient:
|
||||
'status': updated_subscription.status
|
||||
}
|
||||
except Exception as e:
|
||||
logger.error("Failed to update subscription plan", tenant_id=tenant_id, new_plan=new_plan, error=str(e))
|
||||
logger.error(f"Failed to update subscription plan, tenant_id={tenant_id}, new_plan={new_plan}, error={str(e)}")
|
||||
raise
|
||||
|
||||
async def create_child_subscription(self, child_tenant_id: str, parent_tenant_id: str) -> Dict[str, Any]:
|
||||
|
||||
Reference in New Issue
Block a user