only use the production apns server for notifications

This commit is contained in:
Andre Medeiros 2022-10-27 15:24:28 -04:00
parent 28c71384be
commit 11ccf632c3

View file

@ -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 {