Skip to content

Commit

Permalink
Refactoring: rename method
Browse files Browse the repository at this point in the history
  • Loading branch information
jimleroyer committed Oct 26, 2023
1 parent 6cdd740 commit 2dc05b8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/notifications/process_notifications.py
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ def db_save_and_send_notification(notification: Notification):

deliver_task = choose_deliver_task(notification)
try:
deliver_task.apply_async([str(notification.id)], queue=notification.queue_name, **build_task_params(notification))
deliver_task.apply_async([str(notification.id)], queue=notification.queue_name, **build_delivery_task_params(notification))
except Exception:
dao_delete_notifications_by_id(notification.id)
raise
Expand All @@ -220,7 +220,7 @@ def db_save_and_send_notification(notification: Notification):
)


def build_task_params(notification: Notification):
def build_delivery_task_params(notification: Notification):
"""
Build task params for the sending parameter tasks.
Expand Down

0 comments on commit 2dc05b8

Please sign in to comment.