Skip to content

Commit

Permalink
Fixed docs for getting context values inside handler (#176)
Browse files Browse the repository at this point in the history
Signed-off-by: Steve Ayers <[email protected]>
  • Loading branch information
SimulShift authored and smaye81 committed Jul 17, 2024
1 parent 55e9f37 commit e63414a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/node/interceptors.md
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ export default (router: ConnectRouter) =>
router.service(ElizaService, {
// implements rpc Say
async say(req, context) {
const user = values.get(kUser);
const user = context.values.get(kUser);
return {
sentence: `Hey ${user.name}! You said: ${req.sentence}`,
};
Expand Down

0 comments on commit e63414a

Please sign in to comment.