Skip to content

Commit

Permalink
fix: The query parameter is incorrect. #1551 (#1552)
Browse files Browse the repository at this point in the history
  • Loading branch information
wll8 committed Jun 3, 2024
1 parent ef6e268 commit 1b7c0fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ export function createApp(db: Low<Data>, options: AppOptions = {}) {

app.delete('/:name/:id', async (req, res, next) => {
const { name = '', id = '' } = req.params
res.locals['data'] = await service.destroyById(name, id, req.query['dependent'])
res.locals['data'] = await service.destroyById(name, id, req.query['_dependent'])
next()
})

Expand Down

0 comments on commit 1b7c0fb

Please sign in to comment.