From 72e7efe17d1a32c190218de89124aa2d68d82063 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Mon, 25 Sep 2017 19:09:32 +0200 Subject: add note --- lib/okpush/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/okpush/index.js') 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) }) }) -- cgit v1.2.3-70-g09d2