Add update group profile API

This commit is contained in:
Erik Johnston 2017-07-20 09:46:33 +01:00
parent 14a34f12d7
commit 6f443a74cf
5 changed files with 52 additions and 0 deletions

View file

@ -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
"""