Don't send notification if other service attrs changed

This commit is contained in:
Imdad Ahad
2017-05-15 15:02:01 +01:00
parent 5eb02a45a5
commit d993e1a43e
2 changed files with 20 additions and 1 deletions

View File

@@ -119,7 +119,7 @@ def create_service():
def update_service(service_id):
fetched_service = dao_fetch_service_by_id(service_id)
# Capture the status change here as Marshmallow changes this later
service_going_live = fetched_service.restricted and not request.get_json().get('restricted')
service_going_live = fetched_service.restricted and not request.get_json().get('restricted', True)
current_data = dict(service_schema.dump(fetched_service).data.items())
current_data.update(request.get_json())