Skip to content

Commit

Permalink
fix types for db
Browse files Browse the repository at this point in the history
  • Loading branch information
harishv7 committed Aug 2, 2024
1 parent 891203c commit e1d76ed
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion apps/studio/src/server/modules/page/page.router.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,9 @@ export const pageRouter = router({
readPage: protectedProcedure
.input(getPageSchema)
.query(async ({ input: { pageId, siteId } }) => {
return getPageById(db, { resourceId: pageId, siteId })
return db.transaction().execute(async (tx) => {
return getPageById(tx, { resourceId: pageId, siteId })
})
}),

readPageAndBlob: protectedProcedure
Expand Down

0 comments on commit e1d76ed

Please sign in to comment.