Skip to content

Commit

Permalink
Notif typo forgot to pass urgent param
Browse files Browse the repository at this point in the history
  • Loading branch information
vcai122 committed Nov 19, 2024
1 parent 97387cd commit 8f3b7b0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions backend/user/notifications.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ def send_one_notification(self, token, payload):

@shared_task(name="notifications.ios_send_notification")
def ios_send_notification(tokens, title, body, urgent):
IOSNotificationSender.send_notification(tokens, title, body)
IOSNotificationSender.send_notification(tokens, title, body, urgent)

Check warning on line 142 in backend/user/notifications.py

View check run for this annotation

Codecov / codecov/patch

backend/user/notifications.py#L142

Added line #L142 was not covered by tests


@shared_task(name="notifications.ios_send_shadow_notification")
Expand All @@ -149,7 +149,7 @@ def ios_send_shadow_notification(tokens, body):

@shared_task(name="notifications.android_send_notification")
def android_send_notification(tokens, title, body, urgent):
AndroidNotificationSender.send_notification(tokens, title, body)
AndroidNotificationSender.send_notification(tokens, title, body, urgent)

Check warning on line 152 in backend/user/notifications.py

View check run for this annotation

Codecov / codecov/patch

backend/user/notifications.py#L152

Added line #L152 was not covered by tests


@shared_task(name="notifications.android_send_shadow_notification")
Expand All @@ -159,7 +159,7 @@ def android_send_shadow_notification(tokens, body):

@shared_task(name="notifications.ios_send_dev_notification")
def ios_send_dev_notification(tokens, title, body, urgent):
IOSNotificationDevSender.send_notification(tokens, title, body)
IOSNotificationDevSender.send_notification(tokens, title, body, urgent)

Check warning on line 162 in backend/user/notifications.py

View check run for this annotation

Codecov / codecov/patch

backend/user/notifications.py#L162

Added line #L162 was not covered by tests


@shared_task(name="notifications.ios_send_dev_shadow_notification")
Expand Down

0 comments on commit 8f3b7b0

Please sign in to comment.