diff options
| author | Jules Laplace <jules@okfoc.us> | 2017-02-19 04:53:51 +0100 |
|---|---|---|
| committer | Jules Laplace <jules@okfoc.us> | 2017-02-19 04:53:51 +0100 |
| commit | 74468b9867aff92417afe0598a2146b3726d4393 (patch) | |
| tree | a9c5f59aab68be3dbc2d95591293c4d1d092fb19 /lib/okpush/index.js | |
| parent | 6e5e218831aa5be1c647ceae2693c2ece31b8b41 (diff) | |
| parent | b7fbbf3f91490a488e54fe5f8c700813f0ab8021 (diff) | |
Merge branch 'cms' of ghghgh.us:stone-island into cms
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) }) }) |
