summary refs log tree commit diff
path: root/synapse/storage/__init__.py
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2015-04-14 13:54:09 +0100
committerErik Johnston <erik@matrix.org>2015-04-14 13:54:09 +0100
commit5a95cd444297dfc2aab98259d6fc6a07bed837b9 (patch)
tree58ab61a1d66d15ad6a0274de1fc98013d4dd2e35 /synapse/storage/__init__.py
parentAdd support for postgres instead of mysql. Change sql accourdingly. blob + va... (diff)
downloadsynapse-5a95cd444297dfc2aab98259d6fc6a07bed837b9.tar.xz
Rename user_ips.user -> user_id
Diffstat (limited to 'synapse/storage/__init__.py')
-rw-r--r--synapse/storage/__init__.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/storage/__init__.py b/synapse/storage/__init__.py
index 272420194d..995114e405 100644
--- a/synapse/storage/__init__.py
+++ b/synapse/storage/__init__.py
@@ -107,7 +107,7 @@ class DataStore(RoomMemberStore, RoomStore,
         yield self._simple_upsert(
             "user_ips",
             keyvalues={
-                "user": user.to_string(),
+                "user_id": user.to_string(),
                 "access_token": access_token,
                 "ip": ip,
                 "user_agent": user_agent,
@@ -122,7 +122,7 @@ class DataStore(RoomMemberStore, RoomStore,
     def get_user_ip_and_agents(self, user):
         return self._simple_select_list(
             table="user_ips",
-            keyvalues={"user": user.to_string()},
+            keyvalues={"user_id": user.to_string()},
             retcols=[
                 "device_id", "access_token", "ip", "user_agent", "last_seen"
             ],