mirror of
https://github.com/christianselig/apollo-backend
synced 2024-11-24 20:57:43 +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 {
|
for _, device := range devices {
|
||||||
notification.DeviceToken = device.APNSToken
|
notification.DeviceToken = device.APNSToken
|
||||||
client := nc.apnsProduction
|
client := nc.apnsProduction
|
||||||
if device.Sandbox {
|
/*
|
||||||
client = nc.apnsSandbox
|
if device.Sandbox {
|
||||||
}
|
client = nc.apnsSandbox
|
||||||
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
res, err := client.PushWithContext(ctx, notification)
|
res, err := client.PushWithContext(ctx, notification)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
Loading…
Reference in a new issue