bug fix in enhance list
This commit is contained in:
parent
4968dae33e
commit
b44faefbbb
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user