mirror of
https://github.com/GSA/notifications-api.git
synced 2026-01-30 06:21:50 -05:00
Removed dao_update_organisation
This commit is contained in:
@@ -2,7 +2,6 @@ from flask import Blueprint, jsonify, request
|
||||
|
||||
from app.dao.organisations_dao import (
|
||||
dao_create_organisation,
|
||||
dao_update_organisation,
|
||||
dao_get_organisations,
|
||||
dao_get_organisation_by_id,
|
||||
)
|
||||
@@ -41,12 +40,11 @@ def create_organisation():
|
||||
|
||||
@organisation_blueprint.route('/<uuid:organisation_id>', methods=['POST'])
|
||||
def update_organisation(organisation_id):
|
||||
fetched_organisation = dao_get_organisation_by_id(organisation_id)
|
||||
|
||||
data = request.get_json()
|
||||
|
||||
validate(data, post_update_organisation_schema)
|
||||
|
||||
fetched_organisation = dao_get_organisation_by_id(organisation_id)
|
||||
for key in data.keys():
|
||||
setattr(fetched_organisation, key, data[key])
|
||||
|
||||
|
||||
Reference in New Issue
Block a user