postgres fix
Some checks failed
Tests / test (push) Has been cancelled
/ release (push) Has been cancelled
/ pullrequest (push) Has been cancelled

This commit is contained in:
Riccardo Balbo 2025-03-03 20:20:08 +00:00
commit a6e0a18a06
2 changed files with 13 additions and 15 deletions

View file

@ -280,8 +280,9 @@ async def set_config_nwc(key: str, value: str):
await db.execute(
"""
INSERT OR REPLACE INTO nwcprovider.config (key, value)
INSERT INTO nwcprovider.config (key, value)
VALUES (:key, :value)
ON CONFLICT (key) DO UPDATE SET value = EXCLUDED.value;
""",
{"key": key, "value": value},
)