move page logic to the resource table

This commit is contained in:
Brandon Egger
2023-03-16 20:09:40 -05:00
parent 95756e5b37
commit aea93a4895
3 changed files with 41 additions and 12 deletions

View File

@ -18,6 +18,6 @@ export const auditoryResourceRouter = createTRPCRouter({
}),
getAll: publicProcedure.query(({ ctx }) => {
return ctx.prisma.auditoryResource.findMany({ take:10 });
return ctx.prisma.auditoryResource.findMany();
}),
});