mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-06 11:14:59 -04:00
Fix error in get_user_ip_and_agents
when fetching from the database (#10968)
This commit is contained in:
parent
32072dcdac
commit
d1cbad388f
3 changed files with 37 additions and 2 deletions
|
@ -591,8 +591,8 @@ class ClientIpStore(ClientIpWorkerStore):
|
|||
)
|
||||
|
||||
results.update(
|
||||
((row["access_token"], row["ip"]), (row["user_agent"], row["last_seen"]))
|
||||
for row in rows
|
||||
((access_token, ip), (user_agent, last_seen))
|
||||
for access_token, ip, user_agent, last_seen in rows
|
||||
)
|
||||
return [
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue