fix 修复创建队伍藏宝图bug

This commit is contained in:
luying
2020-11-26 14:41:29 +08:00
parent 6e32f88e6a
commit f988f6d079

View File

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