From 23dd07911ea7b2ae138488f871ba83d0bd339274 Mon Sep 17 00:00:00 2001 From: Patrick Cloke Date: Wed, 13 Sep 2023 07:22:20 -0400 Subject: [PATCH] Use keyword arguments. --- synapse/storage/databases/main/registration.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/synapse/storage/databases/main/registration.py b/synapse/storage/databases/main/registration.py index 949e98078b4d..e34156dc5584 100644 --- a/synapse/storage/databases/main/registration.py +++ b/synapse/storage/databases/main/registration.py @@ -2327,9 +2327,9 @@ async def set_device_for_refresh_token( await self.db_pool.simple_update( "refresh_tokens", - {"user_id": user_id, "device_id": old_device_id}, - {"device_id": device_id}, - "set_device_for_refresh_token", + keyvalues={"user_id": user_id, "device_id": old_device_id}, + updatevalues={"device_id": device_id}, + desc="set_device_for_refresh_token", ) def _set_device_for_access_token_txn(