bump deps version

This commit is contained in:
undefined committed 2022-03-12 23:38:41 +08:00
1 parent e7b4b5de5e
commit f621d26ed7
29 files changed
+75 -63

No files matched your search

+1 -3
View File
@@ -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;