summary refs log tree commit diff
path: root/synapse/rest/media/v1
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2017-09-28 13:55:29 +0100
committerErik Johnston <erik@matrix.org>2017-09-28 13:55:29 +0100
commite1e7d76cf16858d998884f19b141f90a0415d297 (patch)
tree47b9d20beb460c768af007b6ccdaa1d2ccd3e342 /synapse/rest/media/v1
parentOnly pull out local media that were for url cache (diff)
downloadsynapse-e1e7d76cf16858d998884f19b141f90a0415d297.tar.xz
Actually assign result to variable
Diffstat (limited to 'synapse/rest/media/v1')
-rw-r--r--synapse/rest/media/v1/preview_url_resource.py2
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 1616809e8f..0123369a7f 100644
--- a/synapse/rest/media/v1/preview_url_resource.py
+++ b/synapse/rest/media/v1/preview_url_resource.py
@@ -372,7 +372,7 @@ class PreviewUrlResource(Resource):
         # may have a room open with a preview url thing open).
         # So we wait a couple of days before deleting, just in case.
         expire_before = now - 2 * 24 * 60 * 60 * 1000
-        yield self.store.get_url_cache_media_before(expire_before)
+        media_ids = yield self.store.get_url_cache_media_before(expire_before)
 
         removed_media = []
         for media_id in media_ids: