From 682d7b484a3bd28d742a94ecd897904f7a84bd54 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Go=C5=82=C4=99biowski?= Date: Sun, 19 Mar 2017 18:02:21 +0100 Subject: [PATCH] docs: add the missing next param (#942) --- docs/migration.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/migration.md b/docs/migration.md index 52625b4..172d877 100644 --- a/docs/migration.md +++ b/docs/migration.md @@ -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' };