This commit is contained in:
Jay 2018-08-17 23:03:10 +08:00
parent 3a07dfbacf
commit 4f6d7a771f

View File

@ -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) {