mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-14 17:22:17 -05:00
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:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user