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