diff options
author | Dirk Klimpel <5740567+dklimpel@users.noreply.github.com> | 2022-04-12 12:54:00 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-12 11:54:00 +0100 |
commit | 1783156dbcf4164692e66275d1c29857c434995b (patch) | |
tree | d2d18c66112307a447be9febed9669c55276cea0 /synapse/handlers/account_validity.py | |
parent | Poetry: select olddeps using `poetry` (#12407) (diff) | |
download | synapse-1783156dbcf4164692e66275d1c29857c434995b.tar.xz |
Add some type hints to datastore (#12423)
* Add some type hints to datastore * newsfile * change `Collection` to `List` * refactor return type of `select_users_txn` * correct type hint in `stream.py` * Remove `Optional` in `select_users_txn` * remove not needed return type in `__init__` * Revert change in `get_stream_id_for_event_txn` * Remove import from `Literal`
Diffstat (limited to 'synapse/handlers/account_validity.py')
-rw-r--r-- | synapse/handlers/account_validity.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/handlers/account_validity.py b/synapse/handlers/account_validity.py index 9d0975f636..05a138410e 100644 --- a/synapse/handlers/account_validity.py +++ b/synapse/handlers/account_validity.py @@ -180,9 +180,9 @@ class AccountValidityHandler: expiring_users = await self.store.get_users_expiring_soon() if expiring_users: - for user in expiring_users: + for user_id, expiration_ts_ms in expiring_users: await self._send_renewal_email( - user_id=user["user_id"], expiration_ts=user["expiration_ts_ms"] + user_id=user_id, expiration_ts=expiration_ts_ms ) async def send_renewal_email_to_user(self, user_id: str) -> None: |