Skip to content

Commit 016310f

Browse files
committed
update
1 parent ad702ef commit 016310f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/reference/server-adapters/elysia.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Elysia
33
description: Adapter for integrating with Elysia
4-
sidebar_position: 7
4+
sidebar_position: 8
55
---
66

77
import ErrorHandling from './_error-handling.md';
@@ -36,7 +36,7 @@ const app = new Elysia({ prefix: '/api' });
3636
app.group('/crud', (app) =>
3737
app.use(
3838
createElysiaHandler({
39-
getPrisma: () => enhance(prisma, { user:getCurrentUser() }),
39+
getPrisma: (context) => enhance(prisma, { user: getCurrentUser(context) }),
4040
basePath: '/api/crud',
4141
})
4242
)

0 commit comments

Comments
 (0)