fix bug 升级更新错误
This commit is contained in:
+1
-1
@@ -32,7 +32,7 @@ export default class Item extends BaseModel {
|
||||
}
|
||||
|
||||
public static async findByRoleAndType(roleId: string, type: number, lean = true) {
|
||||
const items = await ItemModel.find({ roleId, type }).select('id count type').lean(lean);
|
||||
const items = await ItemModel.find({ roleId, type }).select('id count type').sort({id: 1}).lean(lean);
|
||||
return items;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user