summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/okpush/index.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/okpush/index.js b/lib/okpush/index.js
index 9ad6307a..08ab15ae 100644
--- a/lib/okpush/index.js
+++ b/lib/okpush/index.js
@@ -134,10 +134,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)
})