diff options
author | David Baker <dave@matrix.org> | 2015-04-17 16:44:49 +0100 |
---|---|---|
committer | David Baker <dave@matrix.org> | 2015-04-17 16:44:49 +0100 |
commit | f96ab9d18dcebf995700f096792101a490b3a9b8 (patch) | |
tree | 56f0a7ec4737b381312ed181fbd41578cd3e002f /synapse/storage | |
parent | just the once would probably be fine (diff) | |
download | synapse-f96ab9d18dcebf995700f096792101a490b3a9b8.tar.xz |
make add3pid servlet work
Diffstat (limited to 'synapse/storage')
-rw-r--r-- | synapse/storage/registration.py | 11 |
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 |