mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-05 02:41:14 -05:00
Merge pull request #458 from GSA/stvnrlly/use-total-message-limit
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