fix leftover stripe references in admin user detail
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -100,7 +100,7 @@ async def get_user_by_id(user_id: int) -> dict | None:
|
||||
"""Get user by ID with subscription info."""
|
||||
return await fetch_one(
|
||||
"""
|
||||
SELECT u.*, s.plan, s.status as sub_status, s.stripe_customer_id
|
||||
SELECT u.*, s.plan, s.status as sub_status, s.paddle_customer_id
|
||||
FROM users u
|
||||
LEFT JOIN subscriptions s ON s.user_id = u.id
|
||||
WHERE u.id = ?
|
||||
|
||||
@@ -47,13 +47,9 @@
|
||||
<dt>Status</dt>
|
||||
<dd>{{ user.sub_status or 'N/A' }}</dd>
|
||||
|
||||
{% if user.stripe_customer_id %}
|
||||
<dt>Stripe Customer</dt>
|
||||
<dd>
|
||||
<a href="https://dashboard.stripe.com/customers/{{ user.stripe_customer_id }}" target="_blank">
|
||||
{{ user.stripe_customer_id }}
|
||||
</a>
|
||||
</dd>
|
||||
{% if user.paddle_customer_id %}
|
||||
<dt>Paddle Customer</dt>
|
||||
<dd>{{ user.paddle_customer_id }}</dd>
|
||||
{% endif %}
|
||||
</dl>
|
||||
</article>
|
||||
|
||||
Reference in New Issue
Block a user