diff --git a/internal/worker/notifications.go b/internal/worker/notifications.go index 8989ede..a3b55ff 100644 --- a/internal/worker/notifications.go +++ b/internal/worker/notifications.go @@ -48,7 +48,7 @@ func NewNotificationsWorker(logger *logrus.Logger, statsd *statsd.Client, db *pg var apns *token.Token { - authKey, err := token.AuthKeyFromBytes([]byte(os.Getenv("APPLE_KEY_PKEY"))) + authKey, err := token.AuthKeyFromFile(os.Getenv("APPLE_KEY_PATH")) if err != nil { panic(err) }