mirror of
https://mau.dev/maunium/synapse.git
synced 2024-12-15 01:33:52 +01:00
Fix typo
This commit is contained in:
parent
c9bc4b7031
commit
7a44c01d89
1 changed files with 3 additions and 3 deletions
|
@ -260,7 +260,7 @@ class MediaRepositoryStore(SQLBaseStore):
|
||||||
)
|
)
|
||||||
|
|
||||||
def _delete_url_cache_txn(txn):
|
def _delete_url_cache_txn(txn):
|
||||||
txn.executemany(sql, [(media_id) for media_id in media_ids])
|
txn.executemany(sql, [(media_id,) for media_id in media_ids])
|
||||||
|
|
||||||
return self.runInteraction("delete_url_cache", _delete_url_cache_txn)
|
return self.runInteraction("delete_url_cache", _delete_url_cache_txn)
|
||||||
|
|
||||||
|
@ -287,14 +287,14 @@ class MediaRepositoryStore(SQLBaseStore):
|
||||||
" WHERE media_id = ?"
|
" WHERE media_id = ?"
|
||||||
)
|
)
|
||||||
|
|
||||||
txn.executemany(sql, [(media_id) for media_id in media_ids])
|
txn.executemany(sql, [(media_id,) for media_id in media_ids])
|
||||||
|
|
||||||
sql = (
|
sql = (
|
||||||
"DELETE FROM local_media_repository_thumbnails"
|
"DELETE FROM local_media_repository_thumbnails"
|
||||||
" WHERE media_id = ?"
|
" WHERE media_id = ?"
|
||||||
)
|
)
|
||||||
|
|
||||||
txn.executemany(sql, [(media_id) for media_id in media_ids])
|
txn.executemany(sql, [(media_id,) for media_id in media_ids])
|
||||||
|
|
||||||
return self.runInteraction(
|
return self.runInteraction(
|
||||||
"delete_url_cache_media", _delete_url_cache_media_txn,
|
"delete_url_cache_media", _delete_url_cache_media_txn,
|
||||||
|
|
Loading…
Reference in a new issue