Erik Johnston il y a 5 ans
Parent
commit
ed5331a627
1 fichiers modifiés avec 2 ajouts et 0 suppressions
  1. 2 0
      synapse/storage/events.py

+ 2 - 0
synapse/storage/events.py

@@ -1916,6 +1916,8 @@ class EventsStore(EventFederationStore, EventsWorkerStore, BackgroundUpdateStore
         should_delete_params = ()
         if not delete_local_events:
             should_delete_expr += " AND event_id NOT LIKE ?"
+
+            # We include the parameter twice since we use the expression twice
             should_delete_params += (
                 "%:" + self.hs.hostname,
                 "%:" + self.hs.hostname,