From 31c0cd261fa98bfa4b77c3019513bea7fe9cb56f Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Fri, 24 Nov 2017 00:29:50 +0100 Subject: check token --- lib/okpush/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/okpush/index.js') 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) }) }) -- cgit v1.2.3-70-g09d2