Fix error in get_user_ip_and_agents when fetching from the database (#10968)

This commit is contained in:
Sean Quah 2021-10-01 17:22:13 +01:00 committed by GitHub
parent 32072dcdac
commit d1cbad388f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 37 additions and 2 deletions

View file

@ -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 [
{