Fix config fetching

This commit is contained in:
Ajay
2025-04-08 15:46:14 -04:00
parent ac26aed21c
commit 00064d5a7c

View File

@@ -1,7 +1,7 @@
import { db } from "../databases/databases";
export async function getServerConfig(key: string): Promise<string | null> {
const row = await db.prepare("run", `SELECT "value" FROM "config" WHERE "key" = ?`, [key]);
const row = await db.prepare("get", `SELECT "value" FROM "config" WHERE "key" = ?`, [key]);
return row?.value ?? null;
}