From a03a7b3059f63a8b6f86efb082c46c7f09774da0 Mon Sep 17 00:00:00 2001 From: Tejas Manohar Date: Sun, 17 Jan 2016 21:33:45 -0800 Subject: [PATCH] change `this` to `ctx` in v2 signature example --- Readme.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }) ```