summary refs log tree commit diff
path: root/synapse/storage
diff options
context:
space:
mode:
authorDavid Baker <dave@matrix.org>2015-04-17 16:44:49 +0100
committerDavid Baker <dave@matrix.org>2015-04-17 16:44:49 +0100
commitf96ab9d18dcebf995700f096792101a490b3a9b8 (patch)
tree56f0a7ec4737b381312ed181fbd41578cd3e002f /synapse/storage
parentjust the once would probably be fine (diff)
downloadsynapse-f96ab9d18dcebf995700f096792101a490b3a9b8.tar.xz
make add3pid servlet work
Diffstat (limited to 'synapse/storage')
-rw-r--r--synapse/storage/registration.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/synapse/storage/registration.py b/synapse/storage/registration.py

index f61d8fdb6a..4bc01f3cc2 100644 --- a/synapse/storage/registration.py +++ b/synapse/storage/registration.py
@@ -175,3 +175,14 @@ class RegistrationStore(SQLBaseStore): return rows[0] return None + + @defer.inlineCallbacks + def user_add_threepid(self, user_id, medium, address, validated_at, added_at): + yield self._simple_upsert("user_threepids", { + "user": user_id, + "medium": medium, + "address": address, + }, { + "validated_at": validated_at, + "added_at": added_at, + }) \ No newline at end of file