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}) }) }