寻宝:更新文档时去掉 _id 等字段
This commit is contained in:
@@ -6,7 +6,7 @@ import { RoleStatus, ComBattleTeamModel } from './../db/ComBattleTeam';
|
|||||||
import { getBluePrtByQuality, getComBtlSetByQuality, getRewardByBlueprtId, getWarById, getWarIdByBlueprtId, comBtlRangeInfo } from "../pubUtils/gamedata";
|
import { getBluePrtByQuality, getComBtlSetByQuality, getRewardByBlueprtId, getWarById, getWarIdByBlueprtId, comBtlRangeInfo } from "../pubUtils/gamedata";
|
||||||
import { getRandEelm, getRandValue, resResult, ratioReward, getRandValueByMinMax, getRandomWithWeight, decodeStr } from "../pubUtils/util";
|
import { getRandEelm, getRandValue, resResult, ratioReward, getRandValueByMinMax, getRandomWithWeight, decodeStr } from "../pubUtils/util";
|
||||||
import { getRandRobot } from "./battleService";
|
import { getRandRobot } from "./battleService";
|
||||||
import { difference, drop } from 'underscore';
|
import { difference, omit } from 'underscore';
|
||||||
import { Channel } from 'pinus';
|
import { Channel } from 'pinus';
|
||||||
import { TREASURE } from '../pubUtils/dicParam';
|
import { TREASURE } from '../pubUtils/dicParam';
|
||||||
|
|
||||||
@@ -373,7 +373,7 @@ export async function incEquipPrintDrop(roleSt: RoleStatus) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const dropResult = incEquipPrintDropData(roleSt, dropRec);
|
const dropResult = incEquipPrintDropData(roleSt, dropRec);
|
||||||
dropRec = await EquipPrintDropModel.updateDoc(roleId, dropRec);
|
dropRec = await EquipPrintDropModel.updateDoc(roleId, omit(dropRec, ['_id', 'createdAt', 'updatedAt']));
|
||||||
return { dropResult, dropRec };
|
return { dropResult, dropRec };
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user