mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-19 17:38:19 +08:00
交互式安装
This commit is contained in:
1 parent
6134a16f8c
commit
27cfe81e31
21 files changed
+333
-181
No files matched your search
@@ -12,7 +12,7 @@ async function update(_id, operation, config) {
|
||||
return get(_id);
|
||||
}
|
||||
async function set(_id, value) {
|
||||
await coll.findOneAndUpdate({ _id }, { value }, { upsert: true });
|
||||
await coll.findOneAndUpdate({ _id }, { $set: { value } }, { upsert: true });
|
||||
return get(_id);
|
||||
}
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user