mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
bump deps version
This commit is contained in:
1 parent
e7b4b5de5e
commit
f621d26ed7
29 files changed
+75
-63
No files matched your search
@@ -52,9 +52,7 @@ export async function set(_id: string, value: any, broadcast = true) {
|
||||
export async function inc<K extends NumberKeys<SystemKeys>>(_id: K) {
|
||||
const res = await coll.findOneAndUpdate(
|
||||
{ _id },
|
||||
// FIXME NumberKeys<>
|
||||
// @ts-ignore
|
||||
{ $inc: { value: 1 } },
|
||||
{ $inc: { value: 1 } as any },
|
||||
{ upsert: true, returnDocument: 'after' },
|
||||
);
|
||||
cache[_id] = res.value.value;
|
||||
|
||||
Reference in new issue
Block a user