🐞 fix(gvg): 种田记录插入

This commit is contained in:
luying
2023-02-22 14:45:52 +08:00
parent ddc1af67de
commit cddeb71f3d

View File

@@ -52,6 +52,7 @@ export default class GVGLeagueFarmRec extends BaseModel {
public static async insertRecs(type: GVG_RESOURCE_TYPE,params: GVGLeagueFarmType[]) {
let insertParams = params.map(field => {
delete field._id;
return { ...field, startRoleId: field.lockRoleId, startTime: new Date(), type }
})
await GVGLeagueFarmRecModel.insertMany(insertParams);