diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2017-11-24 00:29:50 +0100 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2017-11-24 00:29:50 +0100 |
| commit | 31c0cd261fa98bfa4b77c3019513bea7fe9cb56f (patch) | |
| tree | 37c7a6fd897709fe033123072bb531d1c1ff8116 /lib/okpush/index.js | |
| parent | 5e5f92af830dc4c39de4420ac8effebb3bdd392e (diff) | |
check token
Diffstat (limited to 'lib/okpush/index.js')
| -rw-r--r-- | lib/okpush/index.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/okpush/index.js b/lib/okpush/index.js index 43803965..9835885b 100644 --- a/lib/okpush/index.js +++ b/lib/okpush/index.js @@ -104,7 +104,7 @@ function OKPush (options) { }) router.get('/list', function(req, res){ - db.getAllTokens('hub', function(err, hubz){ + db.getAllTokens(req.query.channel || 'hub', function(err, hubz){ res.json(hubz) }) }) |
