diff options
author | Vitaly Takmazov | 2023-01-14 12:22:53 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2023-01-14 13:59:24 +0300 |
commit | 834fef2a7794d769144c7c087a8b1fa0a2a9bb21 (patch) | |
tree | f44d2139be62ed7382c83ff234a557be66a9bde5 /vnext/server/sender.js | |
parent | 456f2a28efc72809c4ac7dd7ee838e0e5b0a061f (diff) |
DB: merge ios, android, winphone tables to user_services
Diffstat (limited to 'vnext/server/sender.js')
-rw-r--r-- | vnext/server/sender.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vnext/server/sender.js b/vnext/server/sender.js index f33eadcf..7adb1ceb 100644 --- a/vnext/server/sender.js +++ b/vnext/server/sender.js @@ -69,10 +69,10 @@ 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').map(m => { - return { 'type': 'gcm', 'token': m.regId }; + return { 'type': 'fcm', 'token': m.regId }; }); if (badTokens.length > 0) { await deleteSubscribers(badTokens); |