diff options
| author | stone <jules+okfprojz@okfoc.us> | 2017-06-05 15:16:37 -0400 |
|---|---|---|
| committer | stone <jules+okfprojz@okfoc.us> | 2017-06-05 15:16:37 -0400 |
| commit | 0dc10fb0dcbd1d48f0a47d40651fecb21d9b355c (patch) | |
| tree | e098380383eae02c402ac744390ab1615092e1f7 /lib/okpush/index.js | |
| parent | 6196c6d19a8fb8f7a008eba455a54c8e5b1f2160 (diff) | |
db
Diffstat (limited to 'lib/okpush/index.js')
| -rw-r--r-- | lib/okpush/index.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/okpush/index.js b/lib/okpush/index.js index 36588aa2..cf2e928f 100644 --- a/lib/okpush/index.js +++ b/lib/okpush/index.js @@ -110,10 +110,11 @@ function OKPush (options) { // should work without middleware router.post('/add', bodyParser.urlencoded({ extended: false }), function (req, res) { + console.log(req.body) db.addToken({ token: req.body.registrationId, channel: req.body.channel, - platform: req.body.platform, + platform: req.body.platform.toLowerCase(), }) res.sendStatus(200) }) |
