summary refs log tree commit diff
path: root/synapse/storage
diff options
context:
space:
mode:
Diffstat (limited to 'synapse/storage')
-rw-r--r--synapse/storage/appservice.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/storage/appservice.py b/synapse/storage/appservice.py
index c4e50be4c6..07ed0adcf8 100644
--- a/synapse/storage/appservice.py
+++ b/synapse/storage/appservice.py
@@ -212,7 +212,7 @@ class ApplicationServiceStore(SQLBaseStore):
         )
         # cleanup regex
         txn.execute(
-            "DELETE FROM application_services_regex WHERE id=?",
+            "DELETE FROM application_services_regex WHERE as_id=?",
             (as_id,)
         )
         for (ns_int, ns_str) in enumerate(namespace_enum):