From 4f6d7a771fd60d6e7fcd994c68617b4f180e7fe5 Mon Sep 17 00:00:00 2001 From: Jay Date: Fri, 17 Aug 2018 23:03:10 +0800 Subject: [PATCH] fix --- route/api/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/route/api/index.js b/route/api/index.js index 2f18773..4d9166d 100644 --- a/route/api/index.js +++ b/route/api/index.js @@ -15,7 +15,7 @@ const { r.use(async (c, n) => { c.obj = {} c.db = await DB.connect() - c.chkBody = chkObject.bind({body: c.request.body}) + c.chkBody = chkObject.bind(c.request) try { await n() } catch (err) {