From 85ccd8dd905cf221463623f9efafb145483de018 Mon Sep 17 00:00:00 2001 From: dy Date: Thu, 21 Dec 2023 14:56:30 +0800 Subject: [PATCH] =?UTF-8?q?=E9=80=A0=E5=9E=8B=E8=84=9A=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/patch_player_model_20231221.ts | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/patch_player_model_20231221.ts b/src/patch_player_model_20231221.ts index ceab1a7..53c60ea 100644 --- a/src/patch_player_model_20231221.ts +++ b/src/patch_player_model_20231221.ts @@ -9,10 +9,12 @@ async function start() { await G.mongodb.collection("user").updateMany({},{ - upModel:{id: "1", time: -1}, - model: { - '1': {id: "1", time: -1}, - '2': {id: "2", time: -1} + $set:{ + upModel:{id: "1", time: -1}, + model: { + '1': {id: "1", time: -1}, + '2': {id: "2", time: -1} + } } })