Cumfiesta.24.06.16.ryan.reid.the.rise.of.the.cu...
const trendingContent = await prisma.trendingContent.findMany( where: whereClause, orderBy: trendScore: 'desc' , take: parseInt(limit), skip: parseInt(offset), include: _count: select: userBookmarks: true
The Trending Score is calculated every 15 minutes via a background job (Celery/Bull). CumFiesta.24.06.16.Ryan.Reid.The.Rise.Of.The.Cu...
enum ContentType VIDEO MEME ARTICLE TRAILER const trendingContent = await prisma
// Add user-specific interaction status if (req.user) for (const item of trendingContent) item.userLiked = await prisma.userLike.findUnique( where: userId_contentId: userId: req.user.id, contentId: item.id ) !== null; orderBy: trendScore: 'desc'
