mirror of
https://github.com/GSA/notifications-api.git
synced 2026-09-05 23:58:25 -04:00
add updated_at to provider_details
it's set to utcnow from dao_update_provider_details
This commit is contained in:
@@ -37,7 +37,7 @@ def update_provider_details(provider_details_id):
|
||||
current_data.update(request.get_json())
|
||||
update_dict = provider_details_schema.load(current_data).data
|
||||
|
||||
invalid_keys = {'identifier', 'version'} & set(key for key in request.get_json().keys())
|
||||
invalid_keys = {'identifier', 'version', 'updated_at'} & set(key for key in request.get_json().keys())
|
||||
if invalid_keys:
|
||||
message = "Not permitted to be updated"
|
||||
errors = {key: [message] for key in invalid_keys}
|
||||
|
||||
Reference in New Issue
Block a user