add get method
This commit is contained in:
parent
7c6f06e194
commit
5ea7a61915
|
@ -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()
|
||||||
|
|
Loading…
Reference in New Issue