mirror of
https://github.com/GSA/notifications-api.git
synced 2026-08-19 05:58:53 -04:00
Merge pull request #1620 from alphagov/fix-despro-ticket
Fix bug with sending deskpro tickets in production.
This commit is contained in:
@@ -364,7 +364,7 @@ def raise_alert_if_letter_notifications_still_sending():
|
|||||||
)
|
)
|
||||||
|
|
||||||
# Only send alerts in production
|
# Only send alerts in production
|
||||||
if current_app.config['NOTIFY_ENVIRONMENT'] in ['production', 'test']:
|
if current_app.config['NOTIFY_ENVIRONMENT'] in ['live', 'production', 'test']:
|
||||||
deskpro_client.create_ticket(
|
deskpro_client.create_ticket(
|
||||||
subject="[{}] Letters still sending".format(current_app.config['NOTIFY_ENVIRONMENT']),
|
subject="[{}] Letters still sending".format(current_app.config['NOTIFY_ENVIRONMENT']),
|
||||||
message=message,
|
message=message,
|
||||||
@@ -535,7 +535,7 @@ def letter_raise_alert_if_no_ack_file_for_zip():
|
|||||||
zip_file_set.discard('')
|
zip_file_set.discard('')
|
||||||
|
|
||||||
if len(zip_file_set - ack_content_set) > 0:
|
if len(zip_file_set - ack_content_set) > 0:
|
||||||
if current_app.config['NOTIFY_ENVIRONMENT'] in ['production', 'test']:
|
if current_app.config['NOTIFY_ENVIRONMENT'] in ['live', 'production', 'test']:
|
||||||
deskpro_client.create_ticket(
|
deskpro_client.create_ticket(
|
||||||
subject="Letter acknowledge error",
|
subject="Letter acknowledge error",
|
||||||
message=deskpro_message,
|
message=deskpro_message,
|
||||||
|
|||||||
Reference in New Issue
Block a user