From ab8904b5492f7ca80ccb806bc6d921426c3655d4 Mon Sep 17 00:00:00 2001 From: Sunwuyuan Date: Sat, 6 Dec 2025 13:10:02 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BF=AE=E5=A4=8DPOST=20/:key=E5=A4=84?= =?UTF-8?q?=E7=90=86=EF=BC=8C=E7=A1=AE=E4=BF=9DkvStore.upsert=E6=93=8D?= =?UTF-8?q?=E4=BD=9C=E4=B8=BA=E5=BC=82=E6=AD=A5=E6=89=A7=E8=A1=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- routes/kv-token.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routes/kv-token.js b/routes/kv-token.js index 3c34ec6..bf3dd1c 100644 --- a/routes/kv-token.js +++ b/routes/kv-token.js @@ -378,7 +378,7 @@ router.post( req.connection.socket?.remoteAddress || ""; - const result = kvStore.upsert(deviceId, key, value, creatorIp); + const result = await kvStore.upsert(deviceId, key, value, creatorIp); // 广播单个键的变更 const uuid = res.locals.device?.uuid;