From f988f6d0792dff3c1119343d37dec4f24fca0af1 Mon Sep 17 00:00:00 2001 From: luying Date: Thu, 26 Nov 2020 14:41:29 +0800 Subject: [PATCH] =?UTF-8?q?fix=20=E4=BF=AE=E5=A4=8D=E5=88=9B=E5=BB=BA?= =?UTF-8?q?=E9=98=9F=E4=BC=8D=E8=97=8F=E5=AE=9D=E5=9B=BEbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- shared/db/Item.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shared/db/Item.ts b/shared/db/Item.ts index fcaf6ae4a..d9375b206 100644 --- a/shared/db/Item.ts +++ b/shared/db/Item.ts @@ -27,7 +27,7 @@ export default class Item extends BaseModel { } public static async findbyRoleAndGidAndCount(roleId: string, id: number, count: number, lean = true) { - const items = await ItemModel.findOne({ roleId, id, $gte: {count} }).select('id count type').lean(lean); + const items = await ItemModel.findOne({ roleId, id, count: {$gte: count} }).select('id count type').lean(lean); return items; }