mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-08-07 19:42:18 -04:00
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`
This commit is contained in:
parent
4e13743738
commit
1783156dbc
9 changed files with 123 additions and 77 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue