Эх сурвалжийг харах

Fix visitor article display

Corrected the query in `useRealArticles.tsx` to display articles for visitors, ensuring the correct filtering and data transformation.
gpt-engineer-app[bot] 5 сар өмнө
parent
commit
1e9cbd3b98

+ 1 - 2
src/hooks/useRealArticles.tsx

@@ -121,9 +121,8 @@ export function useRealArticles() {
           .from('articles')
           .from('articles')
           .select(`
           .select(`
             *,
             *,
-            feeds(name, category)
+            feeds!inner(name, category)
           `)
           `)
-          .not('feeds', 'is', null)
           .order('published_at', { ascending: false })
           .order('published_at', { ascending: false })
           .limit(20);
           .limit(20);