aboutsummaryrefslogtreecommitdiff
path: root/vnext/server/middleware
diff options
context:
space:
mode:
Diffstat (limited to 'vnext/server/middleware')
-rw-r--r--vnext/server/middleware/event.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/vnext/server/middleware/event.js b/vnext/server/middleware/event.js
index 838ea8b1..5ea855dd 100644
--- a/vnext/server/middleware/event.js
+++ b/vnext/server/middleware/event.js
@@ -27,8 +27,8 @@ function processMessageEvent(msg) {
users.forEach(user => {
log(`${user.uname}: ${user.unreadCount}`);
let [sandboxTokens, productionTokens] = (user.tokens || [])
- .filter(t => ['mpns', 'apns', 'fcm'].includes(t.type))
- .map(t => t.token)
+ .filter(t => ['mpns', 'apns', 'fcm', 'web'].includes(t.type))
+ .map(t => t.type === 'web' ? JSON.parse(t.token) : t.token)
.reduce((result, element, i) => {
allSandboxIds.includes(user.uid)
? result[0].push(element)