Skip to content

Commit 0e6ef18

Browse files
fixes
1 parent a509d21 commit 0e6ef18

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pay-api/src/pay_api/utils/auth_event.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ def publish_lock_account_event(params: LockAccountDetails):
4444
}
4545
gcp_queue_publisher.publish_to_queue(
4646
QueueMessage(
47-
source=source,
47+
source=params.source,
4848
message_type=QueueMessageTypes.NSF_LOCK_ACCOUNT.value,
4949
payload=lock_payload,
5050
topic=current_app.config.get("AUTH_EVENT_TOPIC"),
@@ -54,11 +54,11 @@ def publish_lock_account_event(params: LockAccountDetails):
5454
current_app.logger.error("Error publishing lock event:", exc_info=True)
5555
current_app.logger.warning(
5656
f"Notification to Queue failed for the Account {
57-
pay_account.auth_account_id} - {pay_account.name}"
57+
params.pay_account.auth_account_id} - {params.pay_account.name}"
5858
)
5959
capture_message(
6060
f"Notification to Queue failed for the Account {
61-
pay_account.auth_account_id}, {lock_payload}.",
61+
params.pay_account.auth_account_id}, {lock_payload}.",
6262
level="error",
6363
)
6464

0 commit comments

Comments
 (0)