diff --git a/Readme.md b/Readme.md index aeb705f..9c52393 100644 --- a/Readme.md +++ b/Readme.md @@ -36,7 +36,7 @@ app.use(async (ctx, next) => { }) app.use(async ctx => { - const user = await User.getById(this.session.userid) // await instead of yield + const user = await User.getById(ctx.session.userid) // await instead of yield ctx.body = user // ctx instead of this }) ```