diff --git a/src/app/lib/get.ts b/src/app/lib/get.ts index 66e0fc2..3141d22 100644 --- a/src/app/lib/get.ts +++ b/src/app/lib/get.ts @@ -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() { return prisma.pub.findMany()