Skip to content

Commit

Permalink
Use QueueMessageTypes without being dynamic, it's also missing some t…
Browse files Browse the repository at this point in the history
…ext.
  • Loading branch information
seeker25 committed May 22, 2024
1 parent d9b6c08 commit 084c172
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pay-api/src/pay_api/services/base_payment_system.py
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ def _publish_refund_to_mailer(invoice: InvoiceModel):
gcp_queue_publisher.publish_to_queue(
gcp_queue_publisher.QueueMessage(
source=QueueSources.PAY_API.value,
message_type=f'bc.registry.{invoice.payment_method_code.lower()}.refundRequest',
message_type=QueueMessageTypes.REFUND_DRAWDOWN_REQUEST.value,
payload=payload,
topic=current_app.config.get('ACCOUNT_MAILER_TOPIC')
)
Expand Down

0 comments on commit 084c172

Please sign in to comment.