docs: add the missing next param (#942)

master
Michał Gołębiowski 2017-03-19 18:02:21 +01:00 committed by fengmk2
parent 9a9949f9ee
commit 682d7b484a
1 changed files with 1 additions and 1 deletions

View File

@ -64,7 +64,7 @@ app.use(convert(function *(next) {
You will have to convert your generators to async functions with the new middleware signature:
```js
app.use(async ctx => {
app.use(async (ctx, next) => {
const user = await Users.getById(this.session.user_id);
await next();
ctx.body = { message: 'some message' };