fix 修复创建队伍藏宝图bug
This commit is contained in:
+1
-1
@@ -27,7 +27,7 @@ export default class Item extends BaseModel {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static async findbyRoleAndGidAndCount(roleId: string, id: number, count: number, lean = true) {
|
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;
|
return items;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user