From 35a3dd1fffbdc3d5a15aff7063daece2023ad2f3 Mon Sep 17 00:00:00 2001 From: Travis Semple Date: Mon, 10 Jun 2024 14:46:32 -0700 Subject: [PATCH] Small tweak to fix unlock messages (#2863) --- queue_services/auth-queue/src/auth_queue/resources/worker.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/queue_services/auth-queue/src/auth_queue/resources/worker.py b/queue_services/auth-queue/src/auth_queue/resources/worker.py index 8b7fb84dac..a60bb519cb 100644 --- a/queue_services/auth-queue/src/auth_queue/resources/worker.py +++ b/queue_services/auth-queue/src/auth_queue/resources/worker.py @@ -119,7 +119,8 @@ def process_pay_lock_unlock_event(event_message: SimpleCloudEvent): elif message_type == QueueMessageTypes.NSF_UNLOCK_ACCOUNT.value: org.status_code = OrgStatus.ACTIVE.value org.suspension_reason_code = None - publish_to_mailer(QueueMessageTypes.NSF_UNLOCK_ACCOUNT.value, data, QueueSources.AUTH_QUEUE.value) + # Unlock requires a significant amount of data to generate a receipt, just carry forward queue data. + publish_to_mailer(QueueMessageTypes.NSF_UNLOCK_ACCOUNT.value, queue_data, QueueSources.AUTH_QUEUE.value) org.flush() db.session.commit()