Skip to content

Commit

Permalink
clean up page view
Browse files Browse the repository at this point in the history
  • Loading branch information
pariah committed Dec 23, 2023
1 parent 4a6c202 commit ab97342
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions server/api/page.get.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,18 @@ export default defineEventHandler(async event => {
return false
}
const queryRes = await prisma.page.findFirst({
where: {
cuid : cuid as string
where: {
cuid : cuid as string
},
include: {
Images: true,
PageDonations: true,
Reply: true
Images: true,
PageDonations: {
where: {
success: true
}
},
Reply: true
}
});
return queryRes;
})
})

0 comments on commit ab97342

Please sign in to comment.