From b44faefbbbfb0bce0332fda1e4c8a19d70af5357 Mon Sep 17 00:00:00 2001 From: CounterFire2023 <136581895+CounterFire2023@users.noreply.github.com> Date: Wed, 27 Mar 2024 13:43:19 +0800 Subject: [PATCH] bug fix in enhance list --- src/controllers/chest.controller.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/controllers/chest.controller.ts b/src/controllers/chest.controller.ts index 17249d2..cff119e 100644 --- a/src/controllers/chest.controller.ts +++ b/src/controllers/chest.controller.ts @@ -42,10 +42,10 @@ class BoxController extends BaseController { @router('post /api/chest/enhance/list') async enhanceList(req) { const user = req.user - let { chestId, chestid } = req.query + let { chestId, chestid } = req.params chestid = chestId || chestid if (!chestid) { - throw new ZError(11, 'chestid is required') + throw new ZError(11, 'chestId is required') } const chest = await ActivityChest.findById(chestid) if (!chest) {