summaryrefslogtreecommitdiff
path: root/lib/okpush/index.js
diff options
context:
space:
mode:
authorstone <jules+okfprojz@okfoc.us>2017-06-05 15:16:37 -0400
committerstone <jules+okfprojz@okfoc.us>2017-06-05 15:16:37 -0400
commit0dc10fb0dcbd1d48f0a47d40651fecb21d9b355c (patch)
treee098380383eae02c402ac744390ab1615092e1f7 /lib/okpush/index.js
parent6196c6d19a8fb8f7a008eba455a54c8e5b1f2160 (diff)
db
Diffstat (limited to 'lib/okpush/index.js')
-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 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)
})