mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-20 23:41:17 -05:00
insert total_message_limit into service creation
This commit is contained in:
@@ -216,6 +216,8 @@ def create_service():
|
|||||||
raise InvalidRequest(errors, status_code=400)
|
raise InvalidRequest(errors, status_code=400)
|
||||||
data.pop("service_domain", None)
|
data.pop("service_domain", None)
|
||||||
|
|
||||||
|
data["total_message_limit"] = current_app.config["TOTAL_MESSAGE_LIMIT"]
|
||||||
|
|
||||||
# validate json with marshmallow
|
# validate json with marshmallow
|
||||||
service_schema.load(data)
|
service_schema.load(data)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user