From 60c7fe2398c4052e475ac3ad07bdacb34ec027c6 Mon Sep 17 00:00:00 2001 From: luying Date: Thu, 2 Jun 2022 16:59:31 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8B=8D=E5=8D=96=E8=A1=8C=EF=BC=9A=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D=E5=A2=9E=E5=8A=A0=E7=9A=84=E6=8B=8D=E5=8D=96=E8=A1=8C?= =?UTF-8?q?=E9=81=93=E5=85=B7=E6=98=BE=E7=A4=BA=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- shared/db/Lot.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/shared/db/Lot.ts b/shared/db/Lot.ts index 069bd3c18..7d6410f63 100644 --- a/shared/db/Lot.ts +++ b/shared/db/Lot.ts @@ -58,8 +58,8 @@ export default class Lot extends BaseModel { } public static async createRecs(datas: LotParam[]) { - const result: LotType[] = await LotModel.insertMany(datas); - return result; + await LotModel.insertMany(datas); + return datas; } public static async findLot(code: string) {