1
1
mirror of https://github.com/ZeroCatDev/ClassworksKV.git synced 2025-12-07 04:43:09 +00:00

feat: 修复POST /:key处理,确保kvStore.upsert操作为异步执行

This commit is contained in:
Sunwuyuan 2025-12-06 13:10:02 +08:00
parent da633ca5b6
commit ab8904b549
No known key found for this signature in database
GPG Key ID: A6A54CF66F56BB64

View File

@ -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;