diff --git a/docs/api/context.md b/docs/api/context.md index d9dd193..98db161 100644 --- a/docs/api/context.md +++ b/docs/api/context.md @@ -55,7 +55,7 @@ app.use(async (ctx, next) => { The recommended namespace for passing information through middleware and to your frontend views. ```js -ctx.state.user = yield User.find(id); +ctx.state.user = await User.find(id); ``` ### ctx.app