mirror of
https://github.com/ZeroCatDev/ClassworksKV.git
synced 2025-12-07 13:03:09 +00:00
feat: 修复POST /:key处理,确保kvStore.upsert操作为异步执行
This commit is contained in:
parent
da633ca5b6
commit
ab8904b549
@ -378,7 +378,7 @@ router.post(
|
|||||||
req.connection.socket?.remoteAddress ||
|
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;
|
const uuid = res.locals.device?.uuid;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user