Use the positive condition when checking the environment

This commit is contained in:
Rebecca Law
2018-04-06 12:01:16 +01:00
parent 8b35c1c007
commit 39e4f63b8c

View File

@@ -277,7 +277,7 @@ def process_letter_notification(*, letter_data, api_key, template, reply_to_text
)
elif (
api_key.service.research_mode and
current_app.config['NOTIFY_ENVIRONMENT'] not in ['staging', 'live']
current_app.config['NOTIFY_ENVIRONMENT'] in ['preview', 'development']
):
create_fake_letter_response_file.apply_async(
(notification.reference,),