🐞 fix(gvg): 种田记录插入
This commit is contained in:
@@ -52,6 +52,7 @@ export default class GVGLeagueFarmRec extends BaseModel {
|
|||||||
|
|
||||||
public static async insertRecs(type: GVG_RESOURCE_TYPE,params: GVGLeagueFarmType[]) {
|
public static async insertRecs(type: GVG_RESOURCE_TYPE,params: GVGLeagueFarmType[]) {
|
||||||
let insertParams = params.map(field => {
|
let insertParams = params.map(field => {
|
||||||
|
delete field._id;
|
||||||
return { ...field, startRoleId: field.lockRoleId, startTime: new Date(), type }
|
return { ...field, startRoleId: field.lockRoleId, startTime: new Date(), type }
|
||||||
})
|
})
|
||||||
await GVGLeagueFarmRecModel.insertMany(insertParams);
|
await GVGLeagueFarmRecModel.insertMany(insertParams);
|
||||||
|
|||||||
Reference in New Issue
Block a user