diff options
author | Erik Johnston <erik@matrix.org> | 2017-07-20 09:46:33 +0100 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2017-07-20 09:46:33 +0100 |
commit | 6f443a74cf6ab0bfe452289f9888580725987765 (patch) | |
tree | c993649ca55493d35e9be821b2768dbee30531df /synapse/storage/group_server.py | |
parent | Comments (diff) | |
download | synapse-6f443a74cf6ab0bfe452289f9888580725987765.tar.xz |
Add update group profile API
Diffstat (limited to 'synapse/storage/group_server.py')
-rw-r--r-- | synapse/storage/group_server.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/synapse/storage/group_server.py b/synapse/storage/group_server.py index 0a69e0f501..4197d22d88 100644 --- a/synapse/storage/group_server.py +++ b/synapse/storage/group_server.py @@ -860,6 +860,17 @@ class GroupServerStore(SQLBaseStore): desc="create_group", ) + @defer.inlineCallbacks + def update_group_profile(self, group_id, profile,): + yield self._simple_update_one( + table="groups", + keyvalues={ + "group_id": group_id, + }, + updatevalues=profile, + desc="create_group", + ) + def get_attestations_need_renewals(self, valid_until_ms): """Get all attestations that need to be renewed until givent time """ |