From 60e34cd9ec18d266d79749020affb39d53d2d75a Mon Sep 17 00:00:00 2001 From: yulixing Date: Wed, 3 Jul 2019 14:46:22 +0800 Subject: [PATCH] =?UTF-8?q?fix=20=E5=88=86=E4=BA=AB=E5=9B=BE=E5=88=97?= =?UTF-8?q?=E8=A1=A8=E8=8E=B7=E5=8F=96bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/controllers/games/share.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/controllers/games/share.js b/src/controllers/games/share.js index 968db41..69248dc 100644 --- a/src/controllers/games/share.js +++ b/src/controllers/games/share.js @@ -79,7 +79,7 @@ router.post('/list', async (req, res, next) => { if (shareType) { opt.share_type = shareType } - if (type !== '') { + if (type || type === 0) { opt.type = type } let records @@ -90,7 +90,6 @@ router.post('/list', async (req, res, next) => { } else { records = await GameShareImageModel.find(opt) } - const total = await GameShareImageModel.find(opt).countDocuments() const systemDics = await SystemDic.find({ deleted: false,