Skip to content

Commit

Permalink
chore(website): fix context extension code snippet
Browse files Browse the repository at this point in the history
  • Loading branch information
TheEdoRan committed Aug 12, 2024
1 parent e70a74b commit 158f395
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion website/docs/recipes/extend-context.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ const actionClient = createSafeActionClient()
return next({ ctx: { sessionId } })
})
.use(async ({ next, ctx }) => {
// Get user id from database.
const { sessionId } = ctx; // Context contains `sessionId`
const userId = await getUserIdBySessionId(sessionId);
return next({ ctx: { userId } })
Expand Down

0 comments on commit 158f395

Please sign in to comment.