fix(nostrrelay): use schema-qualified table name in delete_events (#38)

This commit is contained in:
PatMulligan 2025-10-27 08:54:29 +01:00 committed by GitHub
parent 22df5868de
commit 15079c3e58
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -205,8 +205,8 @@ async def delete_events(relay_id: str, nostr_filter: NostrFilter):
query = f"DELETE FROM nostrrelay.events WHERE id IN ({subquery})"
else:
# 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)
# todo: delete tags