mirror of
https://github.com/christianselig/apollo-backend
synced 2024-11-13 23:47:44 +00:00
only use the production apns server for notifications
This commit is contained in:
parent
28c71384be
commit
11ccf632c3
1 changed files with 5 additions and 3 deletions
|
@ -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
|
||||
}
|
||||
*/
|
||||
|
||||
res, err := client.PushWithContext(ctx, notification)
|
||||
if err != nil {
|
||||
|
|
Loading…
Reference in a new issue