优化:拍卖推送减少数据

This commit is contained in:
luying
2022-01-26 16:36:03 +08:00
parent b67e4448df
commit c909d899ba
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -125,7 +125,7 @@ export default class Lot extends BaseModel {
public static async updateLotsStageByBegin(begin: Date, auctionStage: number) {
await LotModel.updateMany({ begin }, { auctionStage });
const results: LotType[] = await LotModel.find({ begin }).select('-_id -__v').lean();
const results: LotType[] = await LotModel.find({ begin }).select('-_id -__v -createdAt -updatedAt').lean();
return results;
}