Add foreign key to reviews table

This commit is contained in:
gpt-engineer-app[bot]
2025-10-02 17:59:02 +00:00
parent 7c7e243741
commit a11e524fa3

View File

@@ -49,7 +49,7 @@ export function ReviewsList({ entityType, entityId, entityName }: ReviewsListPro
.from('reviews')
.select(`
*,
profiles!reviews_user_id_fkey(username, avatar_url, display_name)
profiles!user_id(username, avatar_url, display_name)
`)
.eq('moderation_status', 'approved')
.order('created_at', { ascending: false });