武将:修复获取武将后返回的战力

This commit is contained in:
luying
2021-09-03 16:29:06 +08:00
parent f7e84b809f
commit b2cd60fb0d
2 changed files with 5 additions and 3 deletions

View File

@@ -231,8 +231,8 @@ export default class Hero extends BaseModel {
const seqId = await CounterModel.getNewCounter(COUNTER.HID) || -1;
insertInfos.push({ ...hero, seqId, roleId, roleName, serverId })
}
const hero: HeroType[] = await HeroModel.insertMany(insertInfos);
return hero;
await HeroModel.insertMany(insertInfos);
return <HeroType[]>insertInfos;
}
public static async sumTopHeroCe(roleId: string, num: number) {