From 0dc10fb0dcbd1d48f0a47d40651fecb21d9b355c Mon Sep 17 00:00:00 2001 From: stone Date: Mon, 5 Jun 2017 15:16:37 -0400 Subject: db --- lib/okpush/index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/okpush/index.js') 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) }) -- cgit v1.2.3-70-g09d2