mirror of
https://github.com/GSA/notifications-api.git
synced 2026-01-31 23:26:23 -05:00
Rationalised the queues.
- the internal notify activites (send sms code, forgotten passwords etc) all not in a "notify" queue. - deleted all unused queues
This commit is contained in:
@@ -44,7 +44,7 @@ def create_invited_user(service_id):
|
||||
str(uuid.uuid4()),
|
||||
encryption.encrypt(message),
|
||||
datetime.utcnow().strftime(DATETIME_FORMAT)
|
||||
), queue="email-invited-user")
|
||||
), queue="notify")
|
||||
|
||||
return jsonify(data=invited_user_schema.dump(invited_user).data), 201
|
||||
|
||||
|
||||
@@ -142,7 +142,7 @@ def send_user_sms_code(user_id):
|
||||
str(uuid.uuid4()),
|
||||
verification_message,
|
||||
datetime.utcnow().strftime(DATETIME_FORMAT)
|
||||
], queue='sms-code')
|
||||
], queue='notify')
|
||||
|
||||
return jsonify({}), 204
|
||||
|
||||
@@ -168,7 +168,7 @@ def send_user_email_verification(user_id):
|
||||
str(uuid.uuid4()),
|
||||
encryption.encrypt(message),
|
||||
datetime.utcnow().strftime(DATETIME_FORMAT)
|
||||
), queue='email-registration-verification')
|
||||
), queue='notify')
|
||||
|
||||
return jsonify({}), 204
|
||||
|
||||
@@ -193,7 +193,7 @@ def send_already_registered_email(user_id):
|
||||
str(uuid.uuid4()),
|
||||
encryption.encrypt(message),
|
||||
datetime.utcnow().strftime(DATETIME_FORMAT)
|
||||
), queue='email-already-registered')
|
||||
), queue='notify')
|
||||
|
||||
return jsonify({}), 204
|
||||
|
||||
@@ -252,7 +252,7 @@ def send_user_reset_password():
|
||||
send_email.apply_async([current_app.config['NOTIFY_SERVICE_ID'],
|
||||
str(uuid.uuid4()),
|
||||
encryption.encrypt(message),
|
||||
datetime.utcnow().strftime(DATETIME_FORMAT)], queue='email-reset-password')
|
||||
datetime.utcnow().strftime(DATETIME_FORMAT)], queue='notify')
|
||||
|
||||
return jsonify({}), 204
|
||||
|
||||
|
||||
Reference in New Issue
Block a user