✨ feat(gift): 增加查询保底进度接口

This commit is contained in:
liangtongchuan
2023-02-18 19:38:40 +08:00
committed by luying
parent 199677e2a4
commit 30562552e7
3 changed files with 39 additions and 3 deletions
+2 -2
View File
@@ -41,8 +41,8 @@ export default class GiftPackageFloor extends BaseModel {
}
// 根据礼包 id 查找
public static async findByGiftPackageId(roleId: string, giftPackageId: number, lean = true) {
const result: GiftPackageFloorType = await GiftPackageFloorModel.findOneAndUpdate({ roleId, giftPackageId}, {}, {new: true, upsert: true}).lean(lean);
public static async findByGiftPackageId(roleId: string, giftPackageId: number, select = '', lean = true) {
const result: GiftPackageFloorType = await await GiftPackageFloorModel.findOneAndUpdate({ roleId, giftPackageId}, {}, {new: true, upsert: true}).select(select).lean(lean);
return result;
}