mirror of
https://mau.dev/maunium/synapse.git
synced 2024-10-01 01:36:05 -04:00
Fix UndefinedColumn: column "key_json" does not exist
errors when handling users with more than 50 non-E2E devices (#14580)
This commit is contained in:
parent
8c5b8e6d40
commit
e860316818
@ -1559,6 +1559,7 @@ class DeviceBackgroundUpdateStore(SQLBaseStore):
|
|||||||
# that ensures we keep at most 50 devices.
|
# that ensures we keep at most 50 devices.
|
||||||
sql = """
|
sql = """
|
||||||
SELECT last_seen FROM devices
|
SELECT last_seen FROM devices
|
||||||
|
LEFT JOIN e2e_device_keys_json USING (user_id, device_id)
|
||||||
WHERE
|
WHERE
|
||||||
user_id = ?
|
user_id = ?
|
||||||
AND NOT hidden
|
AND NOT hidden
|
||||||
|
Loading…
Reference in New Issue
Block a user