Skip to content

Commit

Permalink
fix: The query parameter is incorrect. typicode#1551
Browse files Browse the repository at this point in the history
  • Loading branch information
wll8 committed May 30, 2024
1 parent 0f392e6 commit e39848e
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 e39848e

Please sign in to comment.