Skip to content

Commit

Permalink
Small tweak to fix unlock messages (bcgov#2863)
Browse files Browse the repository at this point in the history
  • Loading branch information
seeker25 authored Jun 10, 2024
1 parent be36504 commit 35a3dd1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion queue_services/auth-queue/src/auth_queue/resources/worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 35a3dd1

Please sign in to comment.