添加远征每日重置
This commit is contained in:
@@ -57,6 +57,10 @@ export default class Hero extends BaseModel {
|
||||
return heros || [];
|
||||
}
|
||||
|
||||
public static async findBySeqIdAndRole(seqId: number, roleId: string, lean = true) {
|
||||
const hero = await HeroModel.findOne({ seqId, roleId }).lean(lean);
|
||||
return hero;
|
||||
}
|
||||
public static async findByHidAndRole(hid: number, roleId: string, lean = true) {
|
||||
const hero = await HeroModel.findOne({ hid, roleId }).lean(lean);
|
||||
return hero;
|
||||
|
||||
Reference in New Issue
Block a user