From 2e3218ddd0dd4cccf9038f1fc7b6565c7bad7595 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Sun, 19 Feb 2017 02:47:17 +0100 Subject: show accurate count --- lib/okpush/db.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/okpush/db.js') diff --git a/lib/okpush/db.js b/lib/okpush/db.js index f64acf69..563df18e 100644 --- a/lib/okpush/db.js +++ b/lib/okpush/db.js @@ -69,7 +69,7 @@ function getAllTokens (channel, cb) { PushToken.find({ channel: channel }, function (err, items) { if (err) return cb(err, null) var items = _.map(items, function (item) { - return _.pick(item, ['type', 'token']) + return _.pick(item, ['platform', 'token']) }) return cb(null, items) }) -- cgit v1.2.3-70-g09d2