diff options
Diffstat (limited to 'vnext/server')
-rw-r--r-- | vnext/server/Dockerfile | 2 | ||||
-rw-r--r-- | vnext/server/sender.js | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/vnext/server/Dockerfile b/vnext/server/Dockerfile index 52537cd4..da0a8d18 100644 --- a/vnext/server/Dockerfile +++ b/vnext/server/Dockerfile @@ -1,4 +1,4 @@ -FROM node:23.1.0-bookworm-slim +FROM node:23.2.0-bookworm-slim # Install app dependencies COPY package.json . 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) { |