mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2025-12-11 05:57:04 +03:00
Fix query
This commit is contained in:
@@ -36,7 +36,7 @@ export async function setConfig(req: SetConfigRequest, res: Response): Promise<R
|
||||
}
|
||||
|
||||
try {
|
||||
await db.prepare("run", `INSERT OR REPLACE INTO "config" ("key", "value") VALUES(?, ?)`, [key, value]);
|
||||
await db.prepare("run", `INSERT INTO "config" ("key", "value") VALUES(?, ?) ON CONFLICT ("key") DO UPDATE SET "value" = ?`, [key, value, value]);
|
||||
|
||||
return res.sendStatus(200);
|
||||
} catch (e) {
|
||||
|
||||
Reference in New Issue
Block a user