fix: use getRawDb() instead of drizzle $client for explore tab

$client doesn't exist in drizzle-orm 0.33, causing a TypeError and
500 on every /api/servers/explore request. Export the raw better-sqlite3
instance directly from db/index.ts instead.
This commit is contained in:
Jannis Braun
2026-03-05 00:51:55 +01:00
parent 39372980f7
commit bd7f65d33c
2 changed files with 6 additions and 2 deletions
+4
View File
@@ -226,6 +226,10 @@ export function getDb(): DB {
return db;
}
export function getRawDb(): Database.Database {
return sqlite;
}
export function closeDatabase(): void {
if (sqlite) {
sqlite.close();