mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-11 07:42:20 -05:00
Replace how .dump is called
As with `.load`, only data is now returned instead of a tuple.
This commit is contained in:
@@ -13,4 +13,4 @@ def create_event():
|
||||
data = request.get_json()
|
||||
event = event_schema.load(data)
|
||||
dao_create_event(event)
|
||||
return jsonify(data=event_schema.dump(event).data), 201
|
||||
return jsonify(data=event_schema.dump(event)), 201
|
||||
|
||||
Reference in New Issue
Block a user