diff options
author | Andrew Morgan <andrew@amorgan.xyz> | 2020-03-19 17:12:37 +0000 |
---|---|---|
committer | Andrew Morgan <andrew@amorgan.xyz> | 2020-03-19 17:12:37 +0000 |
commit | 60baffdaa466a28da7b7495ec159093452944429 (patch) | |
tree | 203fb6f3d0430ffa074dcbab0c7230b4d2328753 /synapse/rest | |
parent | Replace /admin/v1/users_paginate endpoint with /admin/v2/users (#5925) (diff) | |
parent | Merge pull request #6469 from matrix-org/erikj/make_database_class (diff) | |
download | synapse-60baffdaa466a28da7b7495ec159093452944429.tar.xz |
Merge pull request #6469 from matrix-org/erikj/make_database_class
* commit 'f3ea2f5a0': Remove unused var Fix DB scripts Newsfile Move background update handling out of store Comments Move DB pool and helper functions into dedicated Database class
Diffstat (limited to 'synapse/rest')
-rw-r--r-- | synapse/rest/media/v1/preview_url_resource.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/rest/media/v1/preview_url_resource.py b/synapse/rest/media/v1/preview_url_resource.py index fb0d02aa83..6b978be876 100644 --- a/synapse/rest/media/v1/preview_url_resource.py +++ b/synapse/rest/media/v1/preview_url_resource.py @@ -402,7 +402,7 @@ class PreviewUrlResource(DirectServeResource): logger.info("Running url preview cache expiry") - if not (yield self.store.has_completed_background_updates()): + if not (yield self.store.db.updates.has_completed_background_updates()): logger.info("Still running DB updates; skipping expiry") return |