fix: admin mentors page 500 on the ambiguous users embed - #89
Conversation
…ip bookings mentorship_bookings references users twice (claimed_by, released_by), so PostgREST refused the ambiguous embed and the admin mentors page threw on render.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Claude finished @thomgabriel's task in 22s —— View job Review: safe to mergeVerified against Checked for other spots embedding No findings.
|
mentorship_bookings has two foreign keys to users (claimed_by and released_by), so PostgREST rejects
claimer:users(full_name)with 'more than one relationship was found' and the admin mentors page fails to render. Reproduced against production with the service role; the query passes once the claimed_by constraint is named in the embed. Blocks organizers from adding mentors.