diff --git a/src/app/lib/get.ts b/src/app/lib/get.ts index 797b286..1d9fb8c 100644 --- a/src/app/lib/get.ts +++ b/src/app/lib/get.ts @@ -1,7 +1,14 @@ "use server" import prisma from "./db" export async function getStories() { - return prisma.story.findMany() + return prisma.story.findMany( + { + include: { + genres: true + } + } + + ) } export async function getPubs() { return prisma.pub.findMany()