diff --git a/client/src/pages/admin.tsx b/client/src/pages/admin.tsx index b13cfa2..4c79989 100644 --- a/client/src/pages/admin.tsx +++ b/client/src/pages/admin.tsx @@ -126,9 +126,9 @@ function VideoManagement({ onOpenDialog: (open: boolean) => void; }) { const { data, isLoading } = useQuery({ - queryKey: ["/api/admin/videos", { search, limit: 50 }], + queryKey: ["/api/admin/videos", { search, limit: 500 }], queryFn: async () => { - const response = await apiRequest("GET", `/api/admin/videos?limit=50&search=${encodeURIComponent(search)}`); + const response = await apiRequest("GET", `/api/admin/videos?limit=500&search=${encodeURIComponent(search)}`); return response.json(); }, }); @@ -149,7 +149,7 @@ function VideoManagement({ - Video Management ({videos.length}) + Video Management ({videos.length} of {data?.total || videos.length}) diff --git a/server/routes.ts b/server/routes.ts index 07dbd69..393b613 100644 --- a/server/routes.ts +++ b/server/routes.ts @@ -892,7 +892,7 @@ export async function registerRoutes(app: Express): Promise { // Admin video management app.get('/api/admin/videos', isAdmin, async (req, res) => { try { - const limit = parseInt(req.query.limit as string) || 50; + const limit = parseInt(req.query.limit as string) || 500; // Increased default limit for admin const offset = parseInt(req.query.offset as string) || 0; const search = req.query.search as string;