diff options
author | Andrew Morgan <1342360+anoadragon453@users.noreply.github.com> | 2021-11-09 14:31:15 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-09 14:31:15 +0000 |
commit | a026695083d66f9fc67a892b59eee66f039e2038 (patch) | |
tree | ef8e4185c84135f82fd7a3ece87196ffaf1bbcab /synapse/storage/databases/main/appservice.py | |
parent | Allow admins to proactively block rooms (#11228) (diff) | |
download | synapse-a026695083d66f9fc67a892b59eee66f039e2038.tar.xz |
Clarifications and small fixes to to-device related code (#11247)
Co-authored-by: Patrick Cloke <clokep@users.noreply.github.com>
Diffstat (limited to 'synapse/storage/databases/main/appservice.py')
-rw-r--r-- | synapse/storage/databases/main/appservice.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/synapse/storage/databases/main/appservice.py b/synapse/storage/databases/main/appservice.py index 2da2659f41..baec35ee27 100644 --- a/synapse/storage/databases/main/appservice.py +++ b/synapse/storage/databases/main/appservice.py @@ -412,16 +412,16 @@ class ApplicationServiceTransactionWorkerStore( ) async def set_type_stream_id_for_appservice( - self, service: ApplicationService, type: str, pos: Optional[int] + self, service: ApplicationService, stream_type: str, pos: Optional[int] ) -> None: - if type not in ("read_receipt", "presence"): + if stream_type not in ("read_receipt", "presence"): raise ValueError( "Expected type to be a valid application stream id type, got %s" - % (type,) + % (stream_type,) ) def set_type_stream_id_for_appservice_txn(txn): - stream_id_type = "%s_stream_id" % type + stream_id_type = "%s_stream_id" % stream_type txn.execute( "UPDATE application_services_state SET %s = ? WHERE as_id=?" % stream_id_type, |