🐞 fix(gvg): 遗迹编队战力未变动

This commit is contained in:
luying
2023-02-24 18:03:23 +08:00
parent 3cde1f37fe
commit 42401b317f
3 changed files with 6 additions and 1 deletions
+2
View File
@@ -96,6 +96,8 @@ export default class GVGVestigeRec extends BaseModel {
if(atkNewRank != undefined && defNewRank != undefined) {
update['attackInfo.newRank'] = atkNewRank;
update['defenseInfo.newRank'] = defNewRank;
update['attackInfo.oldRank'] = isSuccess? defNewRank: atkNewRank;
update['defenseInfo.oldRank'] = isSuccess? atkNewRank: defNewRank;
}
const result: GVGVestigeRecType = await GVGVestigeRecModel.findOneAndUpdate({ battleCode }, { $set: update }, { new: true }).lean();