From b7fbbf3f91490a488e54fe5f8c700813f0ab8021 Mon Sep 17 00:00:00 2001 From: stone Date: Sat, 18 Feb 2017 22:52:02 -0500 Subject: pushing the push notifications --- 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 d696c350..36588aa2 100644 --- a/lib/okpush/index.js +++ b/lib/okpush/index.js @@ -103,8 +103,8 @@ function OKPush (options) { var opt = options.config.notifications[channel] var note = apn.buildPayload(opt, options.config.bundleId) apn.push(channel, note) - db.updateNotification(key, function(){ - res.send(200) + db.addNotification(channel, function(){ + res.sendStatus(200) }) }) -- cgit v1.2.3-70-g09d2