From 322edbdc20db2a5e2bdd290237febd6269180e50 Mon Sep 17 00:00:00 2001 From: Girish Ramakrishnan Date: Mon, 19 Oct 2015 08:57:41 -0700 Subject: [PATCH] getByAppIdAndType --- src/oauthproxy.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/oauthproxy.js b/src/oauthproxy.js index d398f0352..64d549e25 100644 --- a/src/oauthproxy.js +++ b/src/oauthproxy.js @@ -121,7 +121,7 @@ function authenticate(req, res, next) { return res.send(500, 'Unknown app.'); } - clientdb.getByAppId(result.id, clientdb.TYPE_PROXY, function (error, result) { + clientdb.getByAppIdAndType(result.id, clientdb.TYPE_PROXY, function (error, result) { if (error) { console.error('Unkonwn OAuth client.', error); return res.send(500, 'Unknown OAuth client.');