Fix consulting order processing and display
- Fix consulting history to show continuous time range (09:00 - 11:00) instead of listing individual slots - Add foreign key relationships for consulting_slots (order_id and user_id) - Fix handle-order-paid to query profiles(email, name) instead of full_name - Add completed consulting sessions with recordings to Member Access page - Add user_id foreign key constraint to consulting_slots table - Add orders foreign key constraint for consulting_slots relationship 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -65,7 +65,7 @@ serve(async (req) => {
|
||||
// Find the order by payment_reference or id
|
||||
const { data: order, error: orderError } = await supabase
|
||||
.from("orders")
|
||||
.select("id, payment_status")
|
||||
.select("id, payment_status, user_id, total_amount")
|
||||
.or(`payment_reference.eq.${payload.order_id},id.eq.${payload.order_id}`)
|
||||
.single();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user