Skip to content

Commit 1b7c0fb

Browse files
authored
fix: The query parameter is incorrect. #1551 (#1552)
1 parent ef6e268 commit 1b7c0fb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/app.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ export function createApp(db: Low<Data>, options: AppOptions = {}) {
110110

111111
app.delete('/:name/:id', async (req, res, next) => {
112112
const { name = '', id = '' } = req.params
113-
res.locals['data'] = await service.destroyById(name, id, req.query['dependent'])
113+
res.locals['data'] = await service.destroyById(name, id, req.query['_dependent'])
114114
next()
115115
})
116116

0 commit comments

Comments
 (0)