mirror of
https://github.com/GSA/notifications-api.git
synced 2026-01-31 06:52:06 -05:00
Don’t wipe domains when updating other attributes
The domains for an organisation should only be updated (or wiped) if a new list is explicitly passed in by the admin app.
This commit is contained in:
@@ -53,7 +53,7 @@ def dao_create_organisation(organisation):
|
||||
@transactional
|
||||
def dao_update_organisation(organisation_id, **kwargs):
|
||||
|
||||
domains = kwargs.pop('domains', [])
|
||||
domains = kwargs.pop('domains', None)
|
||||
|
||||
organisation = Organisation.query.filter_by(id=organisation_id).update(
|
||||
kwargs
|
||||
|
||||
Reference in New Issue
Block a user