core: use mongodb@6

This commit is contained in:
undefined committed 2025-03-21 06:28:56 +08:00
1 parent 0bd15caee6
commit b6f1a9c627
17 files changed
+64 -80

No files matched your search

+4 -4
View File
@@ -45,8 +45,8 @@ export async function set(_id: string, value: any, broadcast = true) {
{ $set: { value } },
{ upsert: true, returnDocument: 'after' },
);
cache[_id] = res.value.value;
return res.value.value;
cache[_id] = res.value;
return res.value;
}
export async function inc<K extends NumberKeys<SystemKeys>>(_id: K) {
@@ -55,8 +55,8 @@ export async function inc<K extends NumberKeys<SystemKeys>>(_id: K) {
{ $inc: { value: 1 } as any },
{ upsert: true, returnDocument: 'after' },
);
cache[_id] = res.value.value;
return res.value.value;
cache[_id] = res.value;
return res.value;
}
export async function runConfig() {