fix
This commit is contained in:
parent
3a07dfbacf
commit
4f6d7a771f
@ -15,7 +15,7 @@ const {
|
|||||||
r.use(async (c, n) => {
|
r.use(async (c, n) => {
|
||||||
c.obj = {}
|
c.obj = {}
|
||||||
c.db = await DB.connect()
|
c.db = await DB.connect()
|
||||||
c.chkBody = chkObject.bind({body: c.request.body})
|
c.chkBody = chkObject.bind(c.request)
|
||||||
try {
|
try {
|
||||||
await n()
|
await n()
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
|
Loading…
Reference in New Issue
Block a user