add get method

This commit is contained in:
andrzej 2024-06-30 20:15:57 +02:00
parent 7c6f06e194
commit 5ea7a61915
1 changed files with 8 additions and 0 deletions

View File

@ -13,6 +13,14 @@ export async function getStoriesWithGenres() {
) )
} }
export async function getStoriesWithGenresAndSubs() {
return prisma.story.findMany({
include: {
genres: true,
subs: true
}
})
}
export async function getPubs() { export async function getPubs() {
return prisma.pub.findMany() return prisma.pub.findMany()