Cleanup relation schema

This commit is contained in:
Jorge Vargas 2025-02-25 22:14:16 -06:00
parent 781a9ae216
commit a8d253fa2e
10 changed files with 404 additions and 291 deletions

View file

@ -6,7 +6,7 @@ import SidebarSection from './SidebarSection.astro'
import Looper from './CommentCarousel/Looper'
const comments = await prismaClient.comments.findMany({
select: { text: true, albums: { select: { id: true, title: true } } },
select: { text: true, album: { select: { id: true, title: true } } },
orderBy: { createdAt: 'desc' },
take: 5
})