mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-20 15:31:15 -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)
|
||||
data.pop("service_domain", None)
|
||||
|
||||
data["total_message_limit"] = current_app.config["TOTAL_MESSAGE_LIMIT"]
|
||||
|
||||
# validate json with marshmallow
|
||||
service_schema.load(data)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user