refa: deps

This commit is contained in:
idranme
2024-08-02 12:00:13 +00:00
parent d0967785de
commit f3af0d18bc
8 changed files with 30 additions and 35 deletions

View File

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