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/apn.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/okpush/apn.js') diff --git a/lib/okpush/apn.js b/lib/okpush/apn.js index febd03bb..7506e08b 100644 --- a/lib/okpush/apn.js +++ b/lib/okpush/apn.js @@ -12,7 +12,7 @@ function init (config) { } function push (note) { - db.getAllDevices(function(err, tokens){ + db.getAllTokens(note, function(err, tokens){ if (err) { console.error("Error fetching devices:", err) return -- cgit v1.2.3-70-g09d2