From e39848e679c0b772592e3f668341597417101dfa Mon Sep 17 00:00:00 2001 From: wll8 Date: Thu, 30 May 2024 13:51:35 +0800 Subject: [PATCH] fix: The query parameter is incorrect. #1551 --- src/app.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app.ts b/src/app.ts index 911a87c18..de3383e52 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() })