优化:拍卖推送减少数据
This commit is contained in:
+1
-1
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user