皮肤:修复初始武将皮肤
This commit is contained in:
@@ -43,6 +43,11 @@ export default class Skin extends BaseModel {
|
||||
const items: SkinType = await SkinModel.findOneAndUpdate({ roleId, id }, { $setOnInsert: setOnInsert }, { new: true, upsert: true }).lean(lean);
|
||||
return items;
|
||||
}
|
||||
|
||||
public static async deleteByHero(roleId: string, hid: number) {
|
||||
const rec: SkinType[] = await SkinModel.deleteMany({ roleId, hid }).lean();
|
||||
return rec;
|
||||
}
|
||||
}
|
||||
|
||||
export const SkinModel = getModelForClass(Skin);
|
||||
|
||||
Reference in New Issue
Block a user