Skip to content

Commit

Permalink
Final
Browse files Browse the repository at this point in the history
  • Loading branch information
zachHarpaz committed Nov 19, 2024
1 parent 8ff4f31 commit 764c24b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions backend/user/notifications.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import collections
import os
import sys
from abc import ABC, abstractmethod

Expand Down Expand Up @@ -87,7 +86,9 @@ def send_one_notification(self, token, payload):
class IOSNotificationWrapper(NotificationWrapper):
@staticmethod
def get_client(is_dev):
auth_key_path = f"/app/secrets/notifications/ios{'/dev/apns-dev' if is_dev else '/prod/apns-prod'}.pem"
auth_key_path = (
f"/app/secrets/notifications/ios{'/dev/apns-dev' if is_dev else '/prod/apns-prod'}.pem"
)
return APNsClient(credentials=auth_key_path, use_sandbox=is_dev)

def __init__(self, is_dev=False):
Expand Down

0 comments on commit 764c24b

Please sign in to comment.