summary refs log tree commit diff
path: root/synapse/rest/admin
diff options
context:
space:
mode:
authorBrendan Abolivier <babolivier@matrix.org>2020-01-16 20:24:17 +0000
committerBrendan Abolivier <babolivier@matrix.org>2020-01-16 20:24:17 +0000
commit842c2cfbf1e9f3e0d9251fa0c572eba9d6af6dbe (patch)
tree9daf7d044e64e6ce9d5f129db2c95bd972ff5ed7 /synapse/rest/admin
parentLint (diff)
downloadsynapse-842c2cfbf1e9f3e0d9251fa0c572eba9d6af6dbe.tar.xz
Remove get_room_event_after_stream_ordering entirely
Diffstat (limited to 'synapse/rest/admin')
-rw-r--r--synapse/rest/admin/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/rest/admin/__init__.py b/synapse/rest/admin/__init__.py
index a10b4a9b72..2932fe2123 100644
--- a/synapse/rest/admin/__init__.py
+++ b/synapse/rest/admin/__init__.py
@@ -107,7 +107,7 @@ class PurgeHistoryRestServlet(RestServlet):
 
             stream_ordering = await self.store.find_first_stream_ordering_after_ts(ts)
 
-            r = await self.store.get_room_event_after_stream_ordering(
+            r = await self.store.get_room_event_before_stream_ordering(
                 room_id, stream_ordering
             )
             if not r: