diff options
| author | stone <jules+okfprojz@okfoc.us> | 2017-02-18 22:52:02 -0500 |
|---|---|---|
| committer | stone <jules+okfprojz@okfoc.us> | 2017-02-18 22:52:02 -0500 |
| commit | b7fbbf3f91490a488e54fe5f8c700813f0ab8021 (patch) | |
| tree | ea4335ca74f52be11b96102e473552335aecbdc1 /lib/okpush/index.js | |
| parent | 028e52fac9df2440a839e53a6b8bb7fdbc6f0ecd (diff) | |
pushing the push notifications
Diffstat (limited to 'lib/okpush/index.js')
| -rw-r--r-- | lib/okpush/index.js | 4 |
1 files changed, 2 insertions, 2 deletions
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) }) }) |
