refactor post_notification to separate sms/email and letter flows

This commit is contained in:
Leo Hemsted
2017-07-07 17:10:16 +01:00
parent 7f4eec79e4
commit 2be194d9ce
2 changed files with 91 additions and 38 deletions

View File

@@ -234,11 +234,11 @@ post_letter_response = {
}
def create_post_sms_response_from_notification(notification, body, from_number, url_root, scheduled_for):
def create_post_sms_response_from_notification(notification, content, from_number, url_root, scheduled_for):
noti = __create_notification_response(notification, url_root, scheduled_for)
noti['content'] = {
'from_number': from_number,
'body': body
'body': content
}
return noti