diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2017-09-23 21:21:40 +0200 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2017-09-23 21:21:40 +0200 |
| commit | 45ad996cf0d719b05b89dba35af1d7642bdd056e (patch) | |
| tree | 27364b9a3f1fccc227958d7f496a2d4d173329b6 /lib/okpush/index.js | |
| parent | f8257aa6ab3158a328825345a9c0440649b2e791 (diff) | |
| parent | 21b92531e0437006fe12a1ef9d62277b25a231df (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 | 3 |
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) }) |
