mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2025-12-06 11:36:58 +03:00
Use alias for getting server config
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import { db } from "../databases/databases";
|
||||
|
||||
export async function getServerConfig(key: string): Promise<string | null> {
|
||||
const row = await db.prepare("get", `SELECT "value" FROM "config" WHERE "key" = ?`, [key]);
|
||||
const row = await db.prepare("get", `SELECT "value" as v FROM "config" WHERE "key" = ?`, [key]);
|
||||
|
||||
return row?.value ?? null;
|
||||
return row?.v ?? null;
|
||||
}
|
||||
Reference in New Issue
Block a user