summary refs log tree commit diff
path: root/synapse/storage/databases/main/rejections.py
diff options
context:
space:
mode:
Diffstat (limited to 'synapse/storage/databases/main/rejections.py')
-rw-r--r--synapse/storage/databases/main/rejections.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/synapse/storage/databases/main/rejections.py b/synapse/storage/databases/main/rejections.py

index cf9ba51205..1e361aaa9a 100644 --- a/synapse/storage/databases/main/rejections.py +++ b/synapse/storage/databases/main/rejections.py
@@ -14,6 +14,7 @@ # limitations under the License. import logging +from typing import Optional from synapse.storage._base import SQLBaseStore @@ -21,8 +22,8 @@ logger = logging.getLogger(__name__) class RejectionsStore(SQLBaseStore): - def get_rejection_reason(self, event_id): - return self.db_pool.simple_select_one_onecol( + async def get_rejection_reason(self, event_id: str) -> Optional[str]: + return await self.db_pool.simple_select_one_onecol( table="rejections", retcol="reason", keyvalues={"event_id": event_id},