mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-08 04:14:57 -04:00
Fix bug where we didn't correctly pull out the event_id of the deletion
This commit is contained in:
parent
4e79b09dd9
commit
1e6c5b205c
2 changed files with 8 additions and 3 deletions
|
@ -403,9 +403,10 @@ class SQLBaseStore(object):
|
|||
return events
|
||||
|
||||
def _has_been_deleted_txn(self, txn, event):
|
||||
sql = "SELECT * FROM deletions WHERE deletes = ?"
|
||||
sql = "SELECT event_id FROM deletions WHERE deletes = ?"
|
||||
txn.execute(sql, (event.event_id,))
|
||||
return len(txn.fetchall()) > 0
|
||||
result = txn.fetchone()
|
||||
return result[0] if result else None
|
||||
|
||||
|
||||
class Table(object):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue