mirror of
https://github.com/jorgev259/soc_site-astro.git
synced 2025-06-29 07:57:41 +00:00
Cleanup relation schema
This commit is contained in:
parent
781a9ae216
commit
a8d253fa2e
10 changed files with 404 additions and 291 deletions
|
|
@ -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
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue