summaryrefslogtreecommitdiff
path: root/lib/okpush/apn.js
diff options
context:
space:
mode:
authorJules Laplace <jules@okfoc.us>2017-02-19 04:53:51 +0100
committerJules Laplace <jules@okfoc.us>2017-02-19 04:53:51 +0100
commit74468b9867aff92417afe0598a2146b3726d4393 (patch)
treea9c5f59aab68be3dbc2d95591293c4d1d092fb19 /lib/okpush/apn.js
parent6e5e218831aa5be1c647ceae2693c2ece31b8b41 (diff)
parentb7fbbf3f91490a488e54fe5f8c700813f0ab8021 (diff)
Merge branch 'cms' of ghghgh.us:stone-island into cms
Diffstat (limited to 'lib/okpush/apn.js')
-rw-r--r--lib/okpush/apn.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/okpush/apn.js b/lib/okpush/apn.js
index 75322fae..14de7ac8 100644
--- a/lib/okpush/apn.js
+++ b/lib/okpush/apn.js
@@ -12,12 +12,13 @@ function init (config) {
}
function push (channel, note) {
- db.getAllTokens(note, function(err, tokens){
+ db.getAllIOSTokens(channel, function(err, tokens){
if (err) {
console.error("Error fetching devices:", err)
return
}
- connection.send(note, tokens).then( function (response) {
+ console.log(note, tokens)
+ apnProvider.send(note, tokens).then( function (response) {
// response.sent.forEach( function (token) {
// notificationSent(user, token)
// })