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; }