From 01f57b347f8c0eeafa4cef27e22578c8ad42981c Mon Sep 17 00:00:00 2001 From: dy Date: Thu, 4 Jan 2024 18:25:27 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E6=B4=BB=E5=8A=A8=E8=84=9A?= =?UTF-8?q?=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/fix_patch/patch_2024.1.4.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/fix_patch/patch_2024.1.4.ts b/src/fix_patch/patch_2024.1.4.ts index afa2185..95af447 100644 --- a/src/fix_patch/patch_2024.1.4.ts +++ b/src/fix_patch/patch_2024.1.4.ts @@ -7,7 +7,8 @@ class Path { async fun1(a: any) { hdlist.map(i => { - G.mongodb.collection('hdinfo').updateOne({hdid: i.hdid}, i, {upsert: true}) + // @ts-ignore + G.mongodb.collection('hdinfo').updateOne({hdid: i.hdid}, {$set: i}, {upsert: true}) }) }