Updated for pr comments

This commit is contained in:
Adam Shimali
2016-06-15 16:19:28 +01:00
parent b33312b855
commit c268401554
3 changed files with 7 additions and 7 deletions

View File

@@ -292,6 +292,9 @@ def send_notification(notification_type):
sms_template_notification_schema if notification_type == 'sms' else email_notification_schema
).load(request.get_json())
if errors:
raise InvalidRequest(errors, status_code=400)
template = templates_dao.dao_get_template_by_id_and_service_id(
template_id=notification['template'],
service_id=service_id