insert total_message_limit into service creation

This commit is contained in:
stvnrlly
2023-09-06 12:26:37 -04:00
parent fb2d3dc558
commit 8bfc64ebf9

View File

@@ -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)