diff --git a/src/app.ts b/src/app.ts index 911a87c1..de3383e5 100644 --- a/src/app.ts +++ b/src/app.ts @@ -110,7 +110,7 @@ export function createApp(db: Low, 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() })