fix(nostrrelay): use schema-qualified table name in delete_events (#38)
This commit is contained in:
parent
22df5868de
commit
15079c3e58
1 changed files with 2 additions and 2 deletions
4
crud.py
4
crud.py
|
|
@ -205,8 +205,8 @@ async def delete_events(relay_id: str, nostr_filter: NostrFilter):
|
||||||
query = f"DELETE FROM nostrrelay.events WHERE id IN ({subquery})"
|
query = f"DELETE FROM nostrrelay.events WHERE id IN ({subquery})"
|
||||||
else:
|
else:
|
||||||
# Simple DELETE without JOINs
|
# Simple DELETE without JOINs
|
||||||
query = f"DELETE FROM events WHERE {' AND '.join(where)}"
|
query = f"DELETE FROM nostrrelay.events WHERE {' AND '.join(where)}"
|
||||||
|
|
||||||
await db.execute(query, values)
|
await db.execute(query, values)
|
||||||
# todo: delete tags
|
# todo: delete tags
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue