fix: group notify db cache

This commit is contained in:
linyuchen
2024-03-10 22:44:33 +08:00
parent 192736c8be
commit eeadaa12e9
9 changed files with 64 additions and 33 deletions

17
scripts/test/test_db.ts Normal file
View File

@@ -0,0 +1,17 @@
import {Level} from "level"
const db = new Level(process.env["level_db_path"], {valueEncoding: 'json'});
async function getGroupNotify() {
let keys = await db.keys().all();
let result = []
for (const key of keys) {
// console.log(key)
if (key.startsWith("group_notify_")) {
result.push(key)
}
}
return result
}
getGroupNotify().then(console.log)