Merge branch 'celery-send-sms-code' into celery-send-email-code

Conflicts:
	app/celery/tasks.py
	app/user/rest.py
	scripts/run_celery.sh
This commit is contained in:
Rebecca Law
2016-02-18 10:50:14 +00:00
3 changed files with 5 additions and 7 deletions

View File

@@ -34,12 +34,10 @@ def send_sms(service_id, notification_id, encrypted_notification):
@notify_celery.task(name='send-sms-code')
def send_sms_code(encrypted_notification):
notification = encryption.decrypt(encrypted_notification)
def send_sms_code(encrypted_verification):
verification_message = encryption.decrypt(encrypted_verification)
try:
response = firetext_client.send_sms(notification['to'], notification['secret_code'])
current_app.logger.info(response)
firetext_client.send_sms(verification_message['to'], verification_message['secret_code'])
except FiretextClientException as e:
current_app.logger.error(e)