aboutsummaryrefslogtreecommitdiff
path: root/vnext/server/sender.js
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2024-11-25 16:07:11 +0300
committerGravatar Vitaly Takmazov2024-11-25 16:07:11 +0300
commit791fdc14484bae012a82ea244eefd45673e7e576 (patch)
treee7e366e629d72b24b1baea3b98422c6d831dae24 /vnext/server/sender.js
parent0e553101238ede684ace65be2b570dd60c2651b4 (diff)
sender: Fix FCM cleanupHEADmaster
Diffstat (limited to 'vnext/server/sender.js')
-rw-r--r--vnext/server/sender.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/vnext/server/sender.js b/vnext/server/sender.js
index d5272bfb..acfd3b75 100644
--- a/vnext/server/sender.js
+++ b/vnext/server/sender.js
@@ -70,11 +70,11 @@ export function sendNotification(productionIds, sandboxIds, data) {
log(`${badTokens.length} APNS tokens deleted`)
}
})
- results.filter(r => r.method === 'gcm')
+ results.filter(r => r.method === 'fcm')
.forEach(async r => {
let badTokens = r.message.filter(m =>
m.errorMsg === 'NotRegistered' || m.errorMsg === 'MismatchSenderId'
- || m.errorMsg === 'InvalidRegistration').map(m => {
+ || m.errorMsg === 'InvalidRegistration' || m.errorMsg === 'Requested entity was not found.').map(m => {
return { 'type': 'fcm', 'token': m.regId }
})
if (badTokens.length > 0) {