mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-06-16 08:09:14 -04:00
Revert "Revert accidental fast-forward merge from v1.49.0rc1"
This reverts commit 158d73ebdd
.
This commit is contained in:
parent
158d73ebdd
commit
4dd9ea8f4f
165 changed files with 7715 additions and 2703 deletions
|
@ -143,7 +143,7 @@ class ApplicationServiceTransactionWorkerStore(
|
|||
A list of ApplicationServices, which may be empty.
|
||||
"""
|
||||
results = await self.db_pool.simple_select_list(
|
||||
"application_services_state", {"state": state}, ["as_id"]
|
||||
"application_services_state", {"state": state.value}, ["as_id"]
|
||||
)
|
||||
# NB: This assumes this class is linked with ApplicationServiceStore
|
||||
as_list = self.get_app_services()
|
||||
|
@ -173,7 +173,7 @@ class ApplicationServiceTransactionWorkerStore(
|
|||
desc="get_appservice_state",
|
||||
)
|
||||
if result:
|
||||
return result.get("state")
|
||||
return ApplicationServiceState(result.get("state"))
|
||||
return None
|
||||
|
||||
async def set_appservice_state(
|
||||
|
@ -186,7 +186,7 @@ class ApplicationServiceTransactionWorkerStore(
|
|||
state: The connectivity state to apply.
|
||||
"""
|
||||
await self.db_pool.simple_upsert(
|
||||
"application_services_state", {"as_id": service.id}, {"state": state}
|
||||
"application_services_state", {"as_id": service.id}, {"state": state.value}
|
||||
)
|
||||
|
||||
async def create_appservice_txn(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue