feat(db): call ensureDbInitialized at startup for sql.js pre-init

This commit is contained in:
diegosouzapw
2026-05-20 18:32:38 -03:00
parent a6acef6a5f
commit 8fb4ca77f8

View File

@@ -209,4 +209,6 @@ export async function registerNodejs(): Promise<void> {
const msg = err instanceof Error ? err.message : String(err);
console.warn("[COMPLIANCE] Could not initialize audit log:", msg);
}
await import("@/lib/db/core").then(({ ensureDbInitialized }) => ensureDbInitialized());
}