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."""
|
"""Get user by ID with subscription info."""
|
||||||
return await fetch_one(
|
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
|
FROM users u
|
||||||
LEFT JOIN subscriptions s ON s.user_id = u.id
|
LEFT JOIN subscriptions s ON s.user_id = u.id
|
||||||
WHERE u.id = ?
|
WHERE u.id = ?
|
||||||
|
|||||||
@@ -47,13 +47,9 @@
|
|||||||
<dt>Status</dt>
|
<dt>Status</dt>
|
||||||
<dd>{{ user.sub_status or 'N/A' }}</dd>
|
<dd>{{ user.sub_status or 'N/A' }}</dd>
|
||||||
|
|
||||||
{% if user.stripe_customer_id %}
|
{% if user.paddle_customer_id %}
|
||||||
<dt>Stripe Customer</dt>
|
<dt>Paddle Customer</dt>
|
||||||
<dd>
|
<dd>{{ user.paddle_customer_id }}</dd>
|
||||||
<a href="https://dashboard.stripe.com/customers/{{ user.stripe_customer_id }}" target="_blank">
|
|
||||||
{{ user.stripe_customer_id }}
|
|
||||||
</a>
|
|
||||||
</dd>
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</dl>
|
</dl>
|
||||||
</article>
|
</article>
|
||||||
|
|||||||
Reference in New Issue
Block a user