From 11ccf632c3901af2af49b54f370a1a6b02d11862 Mon Sep 17 00:00:00 2001 From: Andre Medeiros Date: Thu, 27 Oct 2022 15:24:28 -0400 Subject: [PATCH] only use the production apns server for notifications --- internal/worker/notifications.go | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/internal/worker/notifications.go b/internal/worker/notifications.go index 777d5eb..e4de5ea 100644 --- a/internal/worker/notifications.go +++ b/internal/worker/notifications.go @@ -322,9 +322,11 @@ func (nc *notificationsConsumer) Consume(delivery rmq.Delivery) { for _, device := range devices { notification.DeviceToken = device.APNSToken client := nc.apnsProduction - if device.Sandbox { - client = nc.apnsSandbox - } + /* + if device.Sandbox { + client = nc.apnsSandbox + } + */ res, err := client.PushWithContext(ctx, notification) if err != nil {