From 1b7c0fb1b227dd9242d85d6bb9767b026cd79cb2 Mon Sep 17 00:00:00 2001 From: xw Date: Mon, 3 Jun 2024 19:22:40 +0800 Subject: [PATCH] fix: The query parameter is incorrect. #1551 (#1552) --- 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() })