mirror of
https://github.com/pacnpal/thrilltrack-explorer.git
synced 2025-12-23 09:31:12 -05:00
Fix reviews query foreign key
This commit is contained in:
@@ -49,7 +49,7 @@ export function ReviewsList({ entityType, entityId, entityName }: ReviewsListPro
|
|||||||
.from('reviews')
|
.from('reviews')
|
||||||
.select(`
|
.select(`
|
||||||
*,
|
*,
|
||||||
profiles!user_id(username, avatar_url, display_name)
|
profiles!reviews_user_id_fkey(username, avatar_url, display_name)
|
||||||
`)
|
`)
|
||||||
.eq('moderation_status', 'approved')
|
.eq('moderation_status', 'approved')
|
||||||
.order('created_at', { ascending: false });
|
.order('created_at', { ascending: false });
|
||||||
|
|||||||
Reference in New Issue
Block a user