summaryrefslogtreecommitdiff
path: root/lib/okpush/index.js
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2017-09-25 19:09:32 +0200
committerJules Laplace <julescarbon@gmail.com>2017-09-25 19:09:32 +0200
commit72e7efe17d1a32c190218de89124aa2d68d82063 (patch)
tree257b67ecd429ce054b2d2bcdc449d83d45980429 /lib/okpush/index.js
parentbdba73ab985fdd6112f36dff02cd0eff937759b1 (diff)
add note
Diffstat (limited to 'lib/okpush/index.js')
-rw-r--r--lib/okpush/index.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/okpush/index.js b/lib/okpush/index.js
index c202c681..43803965 100644
--- a/lib/okpush/index.js
+++ b/lib/okpush/index.js
@@ -114,7 +114,7 @@ function OKPush (options) {
var opt = options.config.notifications[channel]
var note = apn.buildPayload(opt, options.config.bundleId)
apn.push('hub', note)
- db.addNotification(channel, function(){
+ db.addNotification(channel, "", function(){
res.sendStatus(200)
})
})
@@ -131,7 +131,7 @@ function OKPush (options) {
}
var note = apn.buildPayload(opt, options.config.bundleId)
apn.push('hub', note)
- db.addNotification('custom', function(){
+ db.addNotification('custom', message, function(){
res.sendStatus(200)
})
})