mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-02 09:26:08 -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 (
|
elif (
|
||||||
api_key.service.research_mode and
|
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(
|
create_fake_letter_response_file.apply_async(
|
||||||
(notification.reference,),
|
(notification.reference,),
|
||||||
|
|||||||
Reference in New Issue
Block a user