mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-02 10:46:06 -04:00
Assign the AS ID from the database; replace old placeholder txn id.
This commit is contained in:
parent
01c099d9ef
commit
4a6afa6abf
2 changed files with 5 additions and 4 deletions
|
@ -302,6 +302,7 @@ class ApplicationServiceStore(SQLBaseStore):
|
|||
if as_token not in services:
|
||||
# add the service
|
||||
services[as_token] = {
|
||||
"id": res["as_id"],
|
||||
"url": res["url"],
|
||||
"token": as_token,
|
||||
"hs_token": res["hs_token"],
|
||||
|
@ -326,7 +327,6 @@ class ApplicationServiceStore(SQLBaseStore):
|
|||
except JSONDecodeError:
|
||||
logger.error("Bad regex object '%s'", res["regex"])
|
||||
|
||||
# TODO get last successful txn id f.e. service
|
||||
for service in services.values():
|
||||
logger.info("Found application service: %s", service)
|
||||
self.services_cache.append(ApplicationService(
|
||||
|
@ -334,7 +334,8 @@ class ApplicationServiceStore(SQLBaseStore):
|
|||
url=service["url"],
|
||||
namespaces=service["namespaces"],
|
||||
hs_token=service["hs_token"],
|
||||
sender=service["sender"]
|
||||
sender=service["sender"],
|
||||
id=service["id"]
|
||||
))
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue