mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-02 22:14:55 -04:00
Merge pull request #2377 from matrix-org/erikj/group_profile_update
Add update group profile API
This commit is contained in:
commit
0401604222
5 changed files with 55 additions and 0 deletions
|
@ -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="update_group_profile",
|
||||
)
|
||||
|
||||
def get_attestations_need_renewals(self, valid_until_ms):
|
||||
"""Get all attestations that need to be renewed until givent time
|
||||
"""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue