mirror of
https://github.com/GSA/notifications-api.git
synced 2026-01-30 14:31:57 -05:00
Use the positive condition when checking the environment
This commit is contained in:
@@ -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,),
|
||||
|
||||
Reference in New Issue
Block a user