To make the deployment and testing a little easier move the high volume service ids to the credential repo.

This way we can only add the ids when we are ready and all the infrastrure for the new service has been applied.
This commit is contained in:
Rebecca Law
2020-03-27 08:02:51 +00:00
parent e4df43e412
commit dc44cb29d1
3 changed files with 14 additions and 11 deletions

View File

@@ -203,7 +203,7 @@ def process_sms_or_email_notification(*, form, notification_type, api_key, templ
simulated=simulated
)
if str(service.id) == current_app.config.get('HIGH_VOLUME_SERVICE') and api_key.key_type == KEY_TYPE_NORMAL \
if str(service.id) in current_app.config.get('HIGH_VOLUME_SERVICE') and api_key.key_type == KEY_TYPE_NORMAL \
and notification_type == EMAIL_TYPE:
# Put GOV.UK Email notifications onto a queue
# To take the pressure off the db for API requests put the notification for our high volume service onto a queue