Register handlers after db opened
This commit is contained in:
@@ -122,6 +122,8 @@ export class Database {
|
||||
static async open(file: string): Promise<void> {
|
||||
if (Database.db) return;
|
||||
|
||||
console.log('Opening SQLite database')
|
||||
|
||||
Database.db = await open({
|
||||
filename: file,
|
||||
driver: sqlite3.Database
|
||||
|
||||
Reference in New Issue
Block a user