We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ad702ef commit 016310fCopy full SHA for 016310f
docs/reference/server-adapters/elysia.mdx
@@ -1,7 +1,7 @@
1
---
2
title: Elysia
3
description: Adapter for integrating with Elysia
4
-sidebar_position: 7
+sidebar_position: 8
5
6
7
import ErrorHandling from './_error-handling.md';
@@ -36,7 +36,7 @@ const app = new Elysia({ prefix: '/api' });
36
app.group('/crud', (app) =>
37
app.use(
38
createElysiaHandler({
39
- getPrisma: () => enhance(prisma, { user:getCurrentUser() }),
+ getPrisma: (context) => enhance(prisma, { user: getCurrentUser(context) }),
40
basePath: '/api/crud',
41
})
42
)
0 commit comments