add get method
This commit is contained in:
		
							parent
							
								
									6b9a8335de
								
							
						
					
					
						commit
						52578b7979
					
				|  | @ -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