From 2da34237ba1656e807974a815c73fb5795d3d876 Mon Sep 17 00:00:00 2001 From: Morten Henriksen Date: Fri, 24 Nov 2017 21:37:14 +0100 Subject: [PATCH] fix: spelling _in -> _id Credit goes to Jean-Francois Patentaude --- lib/server/push.api.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/server/push.api.js b/lib/server/push.api.js index 7cb730f..5f901d4 100644 --- a/lib/server/push.api.js +++ b/lib/server/push.api.js @@ -535,7 +535,7 @@ Push.Configure = function(options) { }, // XXX: Test this query: does this work on app id? { $and: [ - { _in: { $in: tokenList } }, // one of the app ids + { _id: { $in: tokenList } }, // one of the app ids { $or: [ { 'token.apn': { $exists: true } }, // got apn token { 'token.gcm': { $exists: true } } // got gcm token