Fix encryption not loading

This commit is contained in:
LukeGus
2025-09-26 17:46:10 -05:00
parent 33aa648d28
commit 54e7ac8bfd
5 changed files with 31 additions and 27 deletions

View File

@@ -97,10 +97,9 @@ class AuthManager {
}
// Import database connection - need to access raw SQLite for migration
const { getSqlite, saveMemoryDatabaseToFile, databaseReady } = await import("../database/db/index.js");
const { getSqlite, saveMemoryDatabaseToFile } = await import("../database/db/index.js");
// Ensure database is fully initialized before accessing SQLite
await databaseReady;
// Database should already be initialized by starter.ts, but ensure we can access it
const sqlite = getSqlite();
// Perform the migration